Page MenuHomeSealhub

No OneTemporary

diff --git a/src/workflow/ArcanistRevertWorkflow.php b/src/workflow/ArcanistRevertWorkflow.php
index a9479357..823a2802 100644
--- a/src/workflow/ArcanistRevertWorkflow.php
+++ b/src/workflow/ArcanistRevertWorkflow.php
@@ -1,37 +1,41 @@
<?php
/**
* Redirects to `arc backout` workflow.
*/
final class ArcanistRevertWorkflow extends ArcanistWorkflow {
public function getWorkflowName() {
return 'revert';
}
public function getCommandSynopses() {
return phutil_console_format(<<<EOTEXT
**revert**
EOTEXT
);
}
public function getCommandHelp() {
return phutil_console_format(<<<EOTEXT
Please use arc backout instead
EOTEXT
);
}
public function getArguments() {
return array(
'*' => 'input',
);
}
+ protected function getSupportedRevisionControlSystems() {
+ return array('git', 'hg');
+ }
+
public function run() {
- $console = PhutilConsole::getConsole();
- $console->writeOut("Please use arc backout instead.\n");
+ echo pht('Please use `%s` instead.', 'arc backout')."\n";
+ return 1;
}
}

File Metadata

Mime Type
text/x-diff
Expires
Sat, Nov 8, 07:39 (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1034287
Default Alt Text
(1 KB)

Event Timeline