From 0fd04109e9e7bda4bdd312446566e35616cd5928 Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Wed, 4 Feb 2015 06:54:07 +1100 Subject: [PATCH] Indicate relevant VCS for `arc feature` Summary: This workflow only works on git + mercurial. Test Plan: I don't even subversion. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D11626 --- src/workflow/ArcanistFeatureWorkflow.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/workflow/ArcanistFeatureWorkflow.php b/src/workflow/ArcanistFeatureWorkflow.php index e8d501f4..5ddf0fef 100644 --- a/src/workflow/ArcanistFeatureWorkflow.php +++ b/src/workflow/ArcanistFeatureWorkflow.php @@ -69,13 +69,12 @@ EOTEXT ); } + public function getSupportedRevisionControlSystems() { + return array('git', 'hg'); + } + public function run() { $repository_api = $this->getRepositoryAPI(); - if (!($repository_api instanceof ArcanistGitAPI) && - !($repository_api instanceof ArcanistMercurialAPI)) { - throw new ArcanistUsageException( - 'arc feature is only supported under Git and Mercurial.'); - } $names = $this->getArgument('branch'); if ($names) { -- 2.43.0