From: Joshua Spence Date: Tue, 3 Feb 2015 19:54:07 +0000 (+1100) Subject: Indicate relevant VCS for `arc feature` X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=0fd04109e9e7bda4bdd312446566e35616cd5928;p=arcanist.git 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 --- 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) {