]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Indicate relevant VCS for `arc feature`
authorJoshua Spence <josh@joshuaspence.com>
Tue, 3 Feb 2015 19:54:07 +0000 (06:54 +1100)
committerJoshua Spence <josh@joshuaspence.com>
Tue, 3 Feb 2015 19:54:08 +0000 (06:54 +1100)
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

index e8d501f4e4cf717c35404de8bc1f86dc7aa864a0..5ddf0fefaae3d12fa70840153f6546f066e64c07 100644 (file)
@@ -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) {