Package sonia.scm.repository.api
Class RevertCommandResult
java.lang.Object
sonia.scm.repository.api.RevertCommandResult
Contains the result of an executed revert command.
- Since:
- 3.8
-
Constructor Summary
ConstructorsConstructorDescriptionRevertCommandResult
(String revision, Collection<String> filesWithConflict) Creates aRevertCommandResult
. -
Method Summary
Modifier and TypeMethodDescriptionstatic RevertCommandResult
failure
(Collection<String> filesWithConflict) Used to indicate a failed revert.boolean
If this returnstrue
, the revert was successful.static RevertCommandResult
Used to indicate a successful revert.
-
Constructor Details
-
RevertCommandResult
Creates aRevertCommandResult
.- Parameters:
revision
- revision identifierfilesWithConflict
- a collection of files where conflicts occur
-
-
Method Details
-
success
Used to indicate a successful revert.- Parameters:
newHeadRevision
- id of the newly created revert- Returns:
RevertCommandResult
-
failure
Used to indicate a failed revert.- Parameters:
filesWithConflict
- collection of conflicting files- Returns:
RevertCommandResult
-
isSuccessful
public boolean isSuccessful()If this returnstrue
, the revert was successful. If this returnsfalse
, there may have been problems like a merge conflict after the revert.
-