mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-21 22:32:41 +01:00
List supported VCS for arc backout
Summary: This workflow does not work on subversion. Test Plan: N/A Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11625
This commit is contained in:
parent
7eb86b2371
commit
6b31c0b98a
1 changed files with 5 additions and 8 deletions
|
@ -22,7 +22,7 @@ EOTEXT
|
|||
|
||||
public function getCommandHelp() {
|
||||
return phutil_console_format(<<<EOTEXT
|
||||
Reverts/backouts on a previous commit. Supports: git
|
||||
Reverts/backouts on a previous commit. Supports: git, hg
|
||||
Command is used like this: arc backout <commithash> | <diff revision>
|
||||
Entering a differential revision will only work if there is only one commit
|
||||
associated with the revision. This requires your working copy is up to date
|
||||
|
@ -125,6 +125,10 @@ EOTEXT
|
|||
return $template;
|
||||
}
|
||||
|
||||
public function getSupportedRevisionControlSystems() {
|
||||
return array('git', 'hg');
|
||||
}
|
||||
|
||||
/**
|
||||
* Performs the backout/revert of a revision and creates a commit.
|
||||
*/
|
||||
|
@ -139,13 +143,6 @@ EOTEXT
|
|||
$repository_api->isHgSubversionRepo();
|
||||
$revision_id = null;
|
||||
|
||||
if (!($repository_api instanceof ArcanistGitAPI) &&
|
||||
!($repository_api instanceof ArcanistMercurialAPI)) {
|
||||
throw new ArcanistUsageException(
|
||||
'Backout currently only supports Git and Mercurial'
|
||||
);
|
||||
}
|
||||
|
||||
$console->writeOut("Starting backout\n");
|
||||
$input = $this->getArgument('input');
|
||||
if (!$input || count($input) != 1) {
|
||||
|
|
Loading…
Reference in a new issue