]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Mark `arc svn-hook-pre-commit` for subversion only
authorJoshua Spence <josh@joshuaspence.com>
Tue, 3 Feb 2015 19:53:41 +0000 (06:53 +1100)
committerJoshua Spence <josh@joshuaspence.com>
Tue, 3 Feb 2015 19:53:41 +0000 (06:53 +1100)
Summary: It doesn't make any sense to run this command on any other VCS.

Test Plan: Ran `arc svn-hook-pre-commit` and hit the usage exception.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11623

src/workflow/ArcanistSvnHookPreCommitWorkflow.php

index 30b8e31052e90be6e65c5313646212ed0e519b53..f27bfd3fccfe61b157bef6ba5e09fb735fc5765d 100644 (file)
@@ -36,6 +36,10 @@ EOTEXT
     return false;
   }
 
+  public function getSupportedRevisionControlSystems() {
+    return array('svn');
+  }
+
   public function run() {
     $svnargs = $this->getArgument('svnargs');
     $repository = $svnargs[0];