]> khamidou — GitHub mirrors - arcanist.git/commit
Align usages of "\1" and "\2" in MercurialRepositoryAPI
authorRichard van Velzen <rvanvelzen1@gmail.com>
Sun, 2 Feb 2014 16:26:25 +0000 (08:26 -0800)
committerepriestley <git@epriestley.com>
Sun, 2 Feb 2014 16:26:25 +0000 (08:26 -0800)
commit114bb9f25bc55b2c5af9dc4e86aed73000bf032f
treeb07d6973b91694871fe8b68b5bc480ba76649ac2
parent988a482ff3a087b4a6b658cadea05f8a05e4598c
Align usages of "\1" and "\2" in MercurialRepositoryAPI

Summary:
Especially on Windows it is hard to use "\1" type escapes in shell commands. The direct usage resulted in some undefined variables because the \1 and \2 weren't actually passed as control characters.

By passing them through the regular arguments list they get sent in the "correct way" regardless of OS

Test Plan: Executed `arc diff` in a HG repo and did not get undefined indexes back

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley

CC: Korvin, epriestley, aran
Differential Revision: https://secure.phabricator.com/D8129
src/repository/api/ArcanistMercurialAPI.php