]> khamidou — GitHub mirrors - arcanist.git/commit
Use hg phases to detect outgoing when phases are supported
authordurham <durham@fb.com>
Fri, 1 Mar 2013 22:10:25 +0000 (14:10 -0800)
committerdurham <durham@fb.com>
Fri, 1 Mar 2013 22:10:25 +0000 (14:10 -0800)
commit4af7c865aa331d05d578c4b44ebca591793178d4
treed7d3c0a29c9452f0731f9dbce0152fc228fc73c1
parent0e254f769d2bbb0c1bb22ff074fa2786607fe289
Use hg phases to detect outgoing when phases are supported

Summary:
There was an accidental ! in the phase vs outgoing condition
which caused it to use 'hg outgoing' when it should have used the draft()
phase.  Fixing this shaves 4.5 seconds off 'arc diff' on large repos.

Test Plan:
Ran arc diff --trace.  Noted that the draft() was used and that the diff
contained the correct files and commit.

Reviewers: epriestley

Reviewed By: epriestley

CC: sid0, bos, dschleimer, aran, Korvin
Differential Revision: https://secure.phabricator.com/D5182
src/repository/api/ArcanistMercurialAPI.php