2013-05-14 20:00:56 +02:00
|
|
|
<?php
|
2014-07-09 01:12:13 +02:00
|
|
|
|
2013-05-14 20:00:56 +02:00
|
|
|
/**
|
2014-07-09 01:12:13 +02:00
|
|
|
* Redirects to `arc backout` workflow.
|
2013-05-14 20:00:56 +02:00
|
|
|
*/
|
2014-07-21 23:49:15 +02:00
|
|
|
final class ArcanistRevertWorkflow extends ArcanistWorkflow {
|
2013-05-14 20:00:56 +02:00
|
|
|
|
|
|
|
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',
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2015-02-02 20:54:22 +01:00
|
|
|
public function getSupportedRevisionControlSystems() {
|
2015-02-01 11:56:28 +01:00
|
|
|
return array('git', 'hg');
|
|
|
|
}
|
|
|
|
|
2013-05-14 20:00:56 +02:00
|
|
|
public function run() {
|
2015-05-13 10:05:15 +02:00
|
|
|
echo pht(
|
|
|
|
'Please use `%s` instead.',
|
|
|
|
'arc backout')."\n";
|
2015-02-01 11:56:28 +01:00
|
|
|
return 1;
|
2013-05-14 20:00:56 +02:00
|
|
|
}
|
2014-07-09 01:12:13 +02:00
|
|
|
|
2013-05-14 20:00:56 +02:00
|
|
|
}
|