]> khamidou — GitHub mirrors - arcanist.git/commit
Fix escaping of bookmarknames properly for `arc patch`
authorepriestley <git@epriestley.com>
Tue, 1 Apr 2014 15:21:15 +0000 (08:21 -0700)
committerepriestley <git@epriestley.com>
Tue, 1 Apr 2014 15:21:15 +0000 (08:21 -0700)
commit11e2c1688fef4a569ab45e9eb41156bf30bedf73
tree12a9a97842e490caa8a0aaa8fe69e37c2fe3809f
parent5280f3708ef7d291b5746459bc033409d7a8740c
Fix escaping of bookmarknames properly for `arc patch`

Summary:
Fixes T4596. I misunderstood this issue and D8512 was not correct. Specifically:

  - The `hg log` needs to be escaped, since otherwise "arcpatch-x" is interpreted as a revset.
  - The `hg update` does not need to be escaped, since updating to a revset doesn't make sense and the command never treats its argument as a revset.
  - The `hg bookmark` does not need to be escaped, for similar reasons.

Test Plan:
  - Ran these commands in isolation and got sensible, consistent results.
  - Ran `arc patch` several times in a row and got proper bookmark names.

Reviewers: btrahan, durham, rvanvelzen

Reviewed By: rvanvelzen

Subscribers: epriestley

Maniphest Tasks: T4596

Differential Revision: https://secure.phabricator.com/D8661
src/workflow/ArcanistPatchWorkflow.php