From: Mehdi Mulani Date: Wed, 7 Aug 2013 21:56:03 +0000 (-0700) Subject: Use underscores instead of hyphens as bookmark suffixes. X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=857b754c7e82445edf833e00d5545f77d3db857a;p=arcanist.git Use underscores instead of hyphens as bookmark suffixes. Summary: When trying to find an unused bookmark we append hyphened suffixes to the end of the bookmark name. In Mercurial, these are treated the same as the bookmark name without the suffix, here's the output from hg log -r: ``` [mehdi] HGPLAIN=1 hg log -r "arcpatch-1" abort: unknown revision 'arcpatch'! [mehdi] HGPLAIN=1 hg log -r "arcpatch_1" abort: unknown revision 'arcpatch_1'! ``` Test Plan: None. Reviewers: epriestley, dschleimer Reviewed By: dschleimer CC: aran, Korvin, DurhamGoode, dschleimer Differential Revision: https://secure.phabricator.com/D6698 --- diff --git a/src/workflow/ArcanistPatchWorkflow.php b/src/workflow/ArcanistPatchWorkflow.php index 36a32098..a33e1419 100644 --- a/src/workflow/ArcanistPatchWorkflow.php +++ b/src/workflow/ArcanistPatchWorkflow.php @@ -217,7 +217,7 @@ EOTEXT $base_name .= "-D{$revision_id}"; } - $suffixes = array(null, '-1', '-2', '-3'); + $suffixes = array(null, '_1', '_2', '_3'); foreach ($suffixes as $suffix) { $proposed_name = $base_name.$suffix;