From 6bca7f0146b4c1f56aa058de0fd9c7f8e4556a78 Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Wed, 4 Feb 2015 06:53:41 +1100 Subject: [PATCH] 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 --- src/workflow/ArcanistSvnHookPreCommitWorkflow.php | 4 ++++ 1 file changed, 4 insertions(+) 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];