From 857b754c7e82445edf833e00d5545f77d3db857a Mon Sep 17 00:00:00 2001 From: Mehdi Mulani Date: Wed, 7 Aug 2013 14:56:03 -0700 Subject: [PATCH] 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 --- src/workflow/ArcanistPatchWorkflow.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.43.0