Page MenuHomePhabricator

D11625.diff
No OneTemporary

D11625.diff

diff --git a/src/workflow/ArcanistBackoutWorkflow.php b/src/workflow/ArcanistBackoutWorkflow.php
--- a/src/workflow/ArcanistBackoutWorkflow.php
+++ b/src/workflow/ArcanistBackoutWorkflow.php
@@ -22,7 +22,7 @@
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 @@
return $template;
}
+ public function getSupportedRevisionControlSystems() {
+ return array('git', 'hg');
+ }
+
/**
* Performs the backout/revert of a revision and creates a commit.
*/
@@ -139,13 +143,6 @@
$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) {

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 22, 7:04 AM (7 h, 53 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7704729
Default Alt Text
D11625.diff (1 KB)

Event Timeline