]> khamidou — GitHub mirrors - arcanist.git/commit
Clean up some "arc" edge cases in Mercurial
authorepriestley <git@epriestley.com>
Fri, 4 May 2012 22:46:10 +0000 (15:46 -0700)
committerepriestley <git@epriestley.com>
Fri, 4 May 2012 22:46:10 +0000 (15:46 -0700)
commitb2dc11940f80d377afa2e51352fcaf0a9c63dc22
treee7e5f9cd4a84a9ba0c159b606fad3f198ad32ce4
parentb77c3794411829511f8da4f1acded1ed130c27af
Clean up some "arc" edge cases in Mercurial

Summary:
  - We no longer need color options since we fake our way through parsing ANSI colorized diffs and use HGPLAIN (on Windows, too!). Drop 'em.
  - In the case where you have nothing outgoing, we don't cache the relative commit and thus run "hg outgoing" too many times, which is fairly slow (even if you have nothing outgoing). Cache it.

Test Plan: Ran "arc diff --trace" in a mercurial working copy with nothing outgoing; verified we run "hg outgoing" only once.

Reviewers: Makinde, csilvers, btrahan

Reviewed By: Makinde

CC: aran
Differential Revision: https://secure.phabricator.com/D2399
src/repository/api/mercurial/ArcanistMercurialAPI.php