revert command. It has setters for all
supported options and arguments of this command and a call() method
to finally execute the command. Each instance of this class should only be
used for one invocation of the command (means: one call to call())
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private MergeResult | |
| private boolean | |
| private ProgressMonitor | |
| private String | |
| private List | |
| private MergeStrategy | |
| private List |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| public RevCommit | call()
Implements abstract org. Implements java. Computes a result, or throws an exception if unable to do so. |
| public MergeResult | Returns: the result of a merge failure,null if no merge
failure occurred during the revertGet the result of a merge failure |
| public List | Returns: the list of successfully revertedorg.'s. Never null but
maybe an empty list if no commit was successfully cherry-pickedGet the list of successfully reverted |
| public List | |
| public RevertCommand | |
| public RevertCommand | Returns: thisthe Id of a commit to be reverted into the current head commit)Include a commit to be reverted |
| public RevertCommand | Returns: thisname of a name, AnyObjectId Ref referring to the committhe Id of a commit which is reverted into the current head commit)Include a commit to be reverted |
| public RevertCommand | Returns: thiswhether to insert a change ID insertChangeId)Defines whether to add a Gerrit change ID to each revert commit message. |
| public RevertCommand | Returns: thisthe name that should be used in the "OURS" place for conflict
markers ourCommitName)Set the name to be used in the "OURS" place for conflict markers |
| public RevertCommand | Returns: thisThe progress monitor associated with the revert operation. |
| public RevertCommand | Returns: thisThe merge strategy to use for this revert command. strategy)Set the merge strategy to use for this revert command |
| commits | back to summary |
|---|---|
| private List<Ref> commits | |
| failingResult | back to summary |
|---|---|
| private MergeResult failingResult | |
| insertChangeId | back to summary |
|---|---|
| private boolean insertChangeId | |
| monitor | back to summary |
|---|---|
| private ProgressMonitor monitor | |
| ourCommitName | back to summary |
|---|---|
| private String ourCommitName | |
| revertedRefs | back to summary |
|---|---|
| private List<Ref> revertedRefs | |
| strategy | back to summary |
|---|---|
| private MergeStrategy strategy | |
| unmergedPaths | back to summary |
|---|---|
| private List<String> unmergedPaths | |
| RevertCommand | back to summary |
|---|---|
| protected RevertCommand(Repository repo) Constructor for RevertCommand.
| |
| calculateOurName | back to summary |
|---|---|
| private String calculateOurName(Ref headRef) | |
| call | back to summary |
|---|---|
| public RevCommit call() throws NoMessageException, UnmergedPathsException, ConcurrentRefUpdateException, WrongRepositoryStateException, GitAPIException Implements abstract org. Implements java. Doc from org. Computes a result, or throws an exception if unable to do so. Execute the command
Executes the
| |
| getFailingResult | back to summary |
|---|---|
| public MergeResult getFailingResult() Get the result of a merge failure
| |
| getRevertedRefs | back to summary |
|---|---|
| public List Get the list of successfully reverted
| |
| getUnmergedPaths | back to summary |
|---|---|
| public List Get unmerged paths | |
| include | back to summary |
|---|---|
| public RevertCommand include(Ref commit) Include a
| |
| include | back to summary |
|---|---|
| public RevertCommand include(AnyObjectId commit) Include a commit to be reverted
| |
| include | back to summary |
|---|---|
| public RevertCommand include(String name, AnyObjectId commit) Include a commit to be reverted
| |
| setInsertChangeId | back to summary |
|---|---|
| public RevertCommand setInsertChangeId(boolean insertChangeId) Defines whether to add a Gerrit change ID to each revert commit message.
| |
| setOurCommitName | back to summary |
|---|---|
| public RevertCommand setOurCommitName(String ourCommitName) Set the name to be used in the "OURS" place for conflict markers
| |
| setProgressMonitor | back to summary |
|---|---|
| public RevertCommand setProgressMonitor(ProgressMonitor monitor) The progress monitor associated with the revert operation. By default,
this is set to
| |
| setStrategy | back to summary |
|---|---|
| public RevertCommand setStrategy(MergeStrategy strategy) Set the merge strategy to use for this revert command
| |