From: epriestley Date: Mon, 21 Oct 2013 23:29:08 +0000 (-0700) Subject: Autocomplete branch names in `arc feature` X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=5c2f7b2abdc23397991d3e1cb9e4f833c11fa635;p=arcanist.git 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 --- 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'); }