]> khamidou — GitHub mirrors - arcanist.git/commit
Improve Arcanist Mercurial compatibility
authorepriestley <git@epriestley.com>
Thu, 15 Sep 2011 01:11:00 +0000 (18:11 -0700)
committerepriestley <git@epriestley.com>
Thu, 15 Sep 2011 14:36:42 +0000 (07:36 -0700)
commit9df1b8a4bd4136c0932904a14cb80ed30fcb7d39
treeb318f2e037346c6d14fbd6575f6de7c234115d3d
parent1c9746a46edc9d246b4171c5aed0a380060e081d
Improve Arcanist Mercurial compatibility

Summary:
  - Use "hg parents" to figure out where outgoing changes originate from, not
"~1", since that's a new feature in Mercurial.
  - Add "--style default" all over the place since hg config can override this
(similar to the date config issues we saw in git).
  - Cache working copy status so we don't run full hg diffs like 30 times
(similar to git/svn APIs).
  - Use full "--git" flag instead of rather cryptic "-g".

Test Plan: Ran "arc diff" in my hg working copy, got the diff I expected.

Reviewers: Makinde, aran, jungejason, nh, tuomaspelkonen

Reviewed By: Makinde

CC: aran, Makinde
Differential Revision: 934
src/repository/api/mercurial/ArcanistMercurialAPI.php