From: Joshua Spence Date: Tue, 3 Feb 2015 19:53:41 +0000 (+1100) Subject: Mark `arc svn-hook-pre-commit` for subversion only X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=6bca7f0146b4c1f56aa058de0fd9c7f8e4556a78;p=arcanist.git Mark `arc svn-hook-pre-commit` for subversion only 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 --- diff --git a/src/workflow/ArcanistSvnHookPreCommitWorkflow.php b/src/workflow/ArcanistSvnHookPreCommitWorkflow.php index 30b8e310..f27bfd3f 100644 --- a/src/workflow/ArcanistSvnHookPreCommitWorkflow.php +++ b/src/workflow/ArcanistSvnHookPreCommitWorkflow.php @@ -36,6 +36,10 @@ EOTEXT return false; } + public function getSupportedRevisionControlSystems() { + return array('svn'); + } + public function run() { $svnargs = $this->getArgument('svnargs'); $repository = $svnargs[0];