Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F10360591
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
View Options
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
Details
Attached
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)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline
Log In to Comment