public class FastForwardOnly extends SubmitStrategy
args| Modifier and Type | Method and Description |
|---|---|
protected CodeReviewCommit |
_run(CodeReviewCommit mergeTip,
java.util.List<CodeReviewCommit> toMerge)
Runs this submit strategy.
|
boolean |
dryRun(CodeReviewCommit mergeTip,
CodeReviewCommit toMerge)
Checks whether the given commit can be merged.
|
boolean |
retryOnLockFailure()
Returns whether a merge that failed with
RefUpdate.Result.LOCK_FAILURE should be retried. |
getNewCommits, getRefLogIdent, run, setRefLogIdentprotected CodeReviewCommit _run(CodeReviewCommit mergeTip, java.util.List<CodeReviewCommit> toMerge) throws MergeException
SubmitStrategy_run in class SubmitStrategymergeTip - the mergeTiptoMerge - the list of submitted commits that should be merged using
this submit strategyMergeExceptionpublic boolean retryOnLockFailure()
SubmitStrategyRefUpdate.Result.LOCK_FAILURE should be retried.
May be overwritten by subclasses.retryOnLockFailure in class SubmitStrategytrue if a merge that failed with
RefUpdate.Result.LOCK_FAILURE should be retried, otherwise
falsepublic boolean dryRun(CodeReviewCommit mergeTip, CodeReviewCommit toMerge) throws MergeException
SubmitStrategydryRun in class SubmitStrategymergeTip - the mergeTiptoMerge - the commit for which it should be checked whether it can be
merged or nottrue if the given commit can be merged, otherwise
falseMergeException