From 5c2f7b2abdc23397991d3e1cb9e4f833c11fa635 Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 21 Oct 2013 16:29:08 -0700 Subject: [PATCH] Autocomplete branch names in `arc feature` Summary: SPOOKY Test Plan: `arc feature ` Reviewers: cpojer, btrahan Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D7376 --- src/workflow/ArcanistFeatureWorkflow.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/workflow/ArcanistFeatureWorkflow.php b/src/workflow/ArcanistFeatureWorkflow.php index 9963bd4a..d9830fa7 100644 --- a/src/workflow/ArcanistFeatureWorkflow.php +++ b/src/workflow/ArcanistFeatureWorkflow.php @@ -48,7 +48,7 @@ EOTEXT } public function requiresAuthentication() { - return !$this->getArgument('names'); + return !$this->getArgument('branch'); } @@ -60,7 +60,7 @@ EOTEXT 'by-status' => array( 'help' => 'Sort branches by status instead of time.', ), - '*' => 'names', + '*' => 'branch', ); } @@ -72,7 +72,7 @@ EOTEXT 'arc feature is only supported under Git and Mercurial.'); } - $names = $this->getArgument('names'); + $names = $this->getArgument('branch'); if ($names) { if (count($names) > 2) { throw new ArcanistUsageException("Specify only one branch."); @@ -109,7 +109,7 @@ EOTEXT if (isset($names[1])) { $start = $names[1]; } else { - $start = $this->getWorkingCopy()->getConfigFromAnySource( + $start = $this->getConfigFromAnySource( 'arc.feature.start.default'); }