From 8208cd3231da38e9da86ac384ebd13ab16ada5fc Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Sun, 1 Feb 2015 21:56:28 +1100 Subject: [PATCH] Minor tidying of `ArcanistRevertWorkflow` Summary: Self-explanatory. Test Plan: Eyeball it. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11557 --- src/workflow/ArcanistRevertWorkflow.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 @@ -29,9 +29,13 @@ EOTEXT ); } + 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; } }