Package com.google.gerrit.server.submit
Class SubmitDryRun
java.lang.Object
com.google.gerrit.server.submit.SubmitDryRun
Dry run of a submit strategy.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addCommits
(Iterable<org.eclipse.jgit.lib.ObjectId> ids, org.eclipse.jgit.revwalk.RevWalk rw, Collection<org.eclipse.jgit.revwalk.RevCommit> out) static Set<org.eclipse.jgit.lib.ObjectId>
getAlreadyAccepted
(org.eclipse.jgit.lib.Repository repo) static Set<org.eclipse.jgit.revwalk.RevCommit>
getAlreadyAccepted
(org.eclipse.jgit.lib.Repository repo, org.eclipse.jgit.revwalk.RevWalk rw) boolean
run
(CurrentUser caller, SubmitType submitType, org.eclipse.jgit.lib.Repository repo, CodeReviewCommit.CodeReviewRevWalk rw, BranchNameKey destBranch, org.eclipse.jgit.lib.ObjectId tip, org.eclipse.jgit.lib.ObjectId toMerge, Set<org.eclipse.jgit.revwalk.RevCommit> alreadyAccepted)
-
Method Details
-
getAlreadyAccepted
public static Set<org.eclipse.jgit.lib.ObjectId> getAlreadyAccepted(org.eclipse.jgit.lib.Repository repo) throws IOException - Throws:
IOException
-
getAlreadyAccepted
public static Set<org.eclipse.jgit.revwalk.RevCommit> getAlreadyAccepted(org.eclipse.jgit.lib.Repository repo, org.eclipse.jgit.revwalk.RevWalk rw) throws IOException - Throws:
IOException
-
addCommits
public static void addCommits(Iterable<org.eclipse.jgit.lib.ObjectId> ids, org.eclipse.jgit.revwalk.RevWalk rw, Collection<org.eclipse.jgit.revwalk.RevCommit> out) throws IOException - Throws:
IOException
-
run
public boolean run(CurrentUser caller, SubmitType submitType, org.eclipse.jgit.lib.Repository repo, CodeReviewCommit.CodeReviewRevWalk rw, BranchNameKey destBranch, org.eclipse.jgit.lib.ObjectId tip, org.eclipse.jgit.lib.ObjectId toMerge, Set<org.eclipse.jgit.revwalk.RevCommit> alreadyAccepted) throws NoSuchProjectException, IOException - Throws:
NoSuchProjectException
IOException
-