From: Marek Sapota Date: Tue, 13 Dec 2011 19:18:07 +0000 (-0800) Subject: Allow revision numbers prefixed with 'D' in `arc commit --revision` X-Git-Tag: conduit-4~218 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=a89d2537a1ab2b306cfbe39169aff978e0d28b80;p=arcanist.git Allow revision numbers prefixed with 'D' in `arc commit --revision` Test Plan: Tried `arc commit --revision D123` and it worked. Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: 1194 --- diff --git a/src/workflow/commit/ArcanistCommitWorkflow.php b/src/workflow/commit/ArcanistCommitWorkflow.php index 6957bbcd..51a111a7 100644 --- a/src/workflow/commit/ArcanistCommitWorkflow.php +++ b/src/workflow/commit/ArcanistCommitWorkflow.php @@ -74,7 +74,7 @@ EOTEXT $repository_api = $this->getRepositoryAPI(); $conduit = $this->getConduit(); - $revision_id = $this->getArgument('revision'); + $revision_id = $this->normalizeRevisionID($this->getArgument('revision')); if (!$revision_id) { $revision_data = $conduit->callMethodSynchronous(