public class MergeAlways extends SubmitStrategy
args| Modifier and Type | Method and Description |
|---|---|
protected MergeTip |
_run(CodeReviewCommit branchTip,
Collection<CodeReviewCommit> toMerge) |
boolean |
dryRun(CodeReviewCommit mergeTip,
CodeReviewCommit toMerge)
Checks whether the given commit can be merged.
|
getNewCommits, getRefLogIdent, retryOnLockFailure, run, setRefLogIdentprotected MergeTip _run(CodeReviewCommit branchTip, Collection<CodeReviewCommit> toMerge) throws IntegrationException
_run in class SubmitStrategyIntegrationExceptionSubmitStrategy.run(CodeReviewCommit, Collection)public boolean dryRun(CodeReviewCommit mergeTip, CodeReviewCommit toMerge) throws IntegrationException
SubmitStrategyImplementations must ensure that invoking this method modifies neither the git repository nor the Gerrit database.
dryRun in class SubmitStrategymergeTip - the merge tip.toMerge - the commit that should be checked.true if the given commit can be merged, otherwise
falseIntegrationException