From 7e901d8b4f1cd7b03915d8fcbe91e2945e9638d7 Mon Sep 17 00:00:00 2001 From: epriestley Date: Sun, 24 Aug 2014 19:29:40 -0700 Subject: [PATCH] Improve "arc land" error message to mention SVN alternatives Summary: Fixes T3813. This error message isn't very helpful in SVN; be more helpful. Test Plan: Ran `arc land` in a Subversion repository, got a reasonable error message. Reviewers: btrahan, asherkin Reviewed By: asherkin Subscribers: aran Maniphest Tasks: T3813 Differential Revision: https://secure.phabricator.com/D7275 --- src/workflow/ArcanistLandWorkflow.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/workflow/ArcanistLandWorkflow.php b/src/workflow/ArcanistLandWorkflow.php index 16140a10..d18af183 100644 --- a/src/workflow/ArcanistLandWorkflow.php +++ b/src/workflow/ArcanistLandWorkflow.php @@ -241,7 +241,9 @@ EOTEXT if (!$this->isGit && !$this->isHg) { throw new ArcanistUsageException( - pht("'arc land' only supports git and mercurial.")); + pht( + "'arc land' only supports Git and Mercurial. For Subversion, try ". + "'arc commit'.")); } if ($this->isGit) {