From 67239a08a58f6e199e9f939628ad74f94bb0a67b Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 12 Mar 2014 19:43:48 -0700 Subject: [PATCH] Use hgsprintf() when managing bookmarks in arc patch in mercurial Summary: Fixes T4596. I couldn't immediately reproduce this, but the `hgsprintf()` version is clearly more correct. Test Plan: Used `arc patch --trace` to examine hg commands. Reviewers: btrahan, durham Reviewed By: durham Subscribers: aran, epriestley Maniphest Tasks: T4596 Differential Revision: https://secure.phabricator.com/D8512 --- src/workflow/ArcanistPatchWorkflow.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/workflow/ArcanistPatchWorkflow.php b/src/workflow/ArcanistPatchWorkflow.php index d3549c9f..3bfdad49 100644 --- a/src/workflow/ArcanistPatchWorkflow.php +++ b/src/workflow/ArcanistPatchWorkflow.php @@ -320,12 +320,12 @@ EOTEXT echo "Updating to the revision's base commit\n"; $repository_api->execPassthru( 'update %s', - $base_revision); + hgsprintf('%s', $base_revision)); } $repository_api->execxLocal( 'bookmark %s', - $branch_name); + hgsprintf('%s', $branch_name)); echo phutil_console_format( "Created and checked out bookmark %s.\n", -- 2.43.0