Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15419569
D11625.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11625.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D11625: List supported VCS for `arc backout`
Attached
Detach File
Event Timeline
Log In to Comment