public class FastForwardOnly extends SubmitStrategy
args
Modifier and Type | Method and Description |
---|---|
protected CodeReviewCommit |
_run(CodeReviewCommit mergeTip,
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, setRefLogIdent
protected CodeReviewCommit _run(CodeReviewCommit mergeTip, List<CodeReviewCommit> toMerge) throws MergeException
SubmitStrategy
_run
in class SubmitStrategy
mergeTip
- the mergeTiptoMerge
- the list of submitted commits that should be merged using
this submit strategyMergeException
public boolean retryOnLockFailure()
SubmitStrategy
RefUpdate.Result.LOCK_FAILURE
should be retried.
May be overwritten by subclasses.retryOnLockFailure
in class SubmitStrategy
true
if a merge that failed with
RefUpdate.Result.LOCK_FAILURE
should be retried, otherwise
false
public boolean dryRun(CodeReviewCommit mergeTip, CodeReviewCommit toMerge) throws MergeException
SubmitStrategy
dryRun
in class SubmitStrategy
mergeTip
- 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
false
MergeException