Package sonia.scm.repository.api
Class MergeDryRunCommandResult
java.lang.Object
sonia.scm.repository.api.MergeDryRunCommandResult
This class keeps the result of a merge dry run. Use
isMergeable() to check whether an automatic merge is
possible or not.-
Constructor Summary
ConstructorsConstructorDescriptionMergeDryRunCommandResult(boolean mergeable) Deprecated.MergeDryRunCommandResult(boolean mergeable, Collection<MergePreventReason> reasons) -
Method Summary
Modifier and TypeMethodDescriptionThis will return the reasons why the merge via the internal merge command is not possible.booleanThis will returntrue, when an automatic merge is possible at the moment;falseotherwise.
-
Constructor Details
-
MergeDryRunCommandResult
Deprecated.Please useMergeDryRunCommandResult(boolean, Collection)instead and specify a concrete reason.Creates a result and sets the reason to FILE_CONFLICTS. -
MergeDryRunCommandResult
- Since:
- 3.3.0
-
-
Method Details
-
isMergeable
public boolean isMergeable()This will returntrue, when an automatic merge is possible at the moment;falseotherwise. -
getReasons
This will return the reasons why the merge via the internal merge command is not possible.
-
MergeDryRunCommandResult(boolean, Collection)instead and specify a concrete reason.