public class GroupCollector
extends java.lang.Object
ReceiveCommits
.
For each commit encountered along a walk between the branch tip and the tip of the push, the group of a commit is defined as follows:
PatchSet
record.
Callers must call visit(RevCommit)
on all commits between the current branch tip and
the tip of a push, in reverse topo order (parents before children). Once all commits have been
visited, call getGroups()
for the result.
Modifier and Type | Method and Description |
---|---|
static GroupCollector |
create(com.google.common.collect.ListMultimap<org.eclipse.jgit.lib.ObjectId,org.eclipse.jgit.lib.Ref> changeRefsById,
ReviewDb db,
PatchSetUtil psUtil,
ChangeNotes.Factory notesFactory,
Project.NameKey project) |
static GroupCollector |
createForSchemaUpgradeOnly(com.google.common.collect.ListMultimap<org.eclipse.jgit.lib.ObjectId,org.eclipse.jgit.lib.Ref> changeRefsById,
ReviewDb db) |
static java.util.List<java.lang.String> |
getDefaultGroups(org.eclipse.jgit.lib.ObjectId commit) |
static java.util.List<java.lang.String> |
getDefaultGroups(PatchSet ps) |
com.google.common.collect.SortedSetMultimap<org.eclipse.jgit.lib.ObjectId,java.lang.String> |
getGroups() |
static java.util.List<java.lang.String> |
getGroups(RevisionResource rsrc) |
void |
visit(org.eclipse.jgit.revwalk.RevCommit c) |
public static java.util.List<java.lang.String> getDefaultGroups(PatchSet ps)
public static java.util.List<java.lang.String> getDefaultGroups(org.eclipse.jgit.lib.ObjectId commit)
public static java.util.List<java.lang.String> getGroups(RevisionResource rsrc)
public static GroupCollector create(com.google.common.collect.ListMultimap<org.eclipse.jgit.lib.ObjectId,org.eclipse.jgit.lib.Ref> changeRefsById, ReviewDb db, PatchSetUtil psUtil, ChangeNotes.Factory notesFactory, Project.NameKey project)
public static GroupCollector createForSchemaUpgradeOnly(com.google.common.collect.ListMultimap<org.eclipse.jgit.lib.ObjectId,org.eclipse.jgit.lib.Ref> changeRefsById, ReviewDb db)
public void visit(org.eclipse.jgit.revwalk.RevCommit c)
public com.google.common.collect.SortedSetMultimap<org.eclipse.jgit.lib.ObjectId,java.lang.String> getGroups() throws com.google.gwtorm.server.OrmException
com.google.gwtorm.server.OrmException