mirror of
https://we.phorge.it/source/arcanist.git
synced 2025-02-16 16:58:38 +01:00
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
This commit is contained in:
parent
0e254f769d
commit
4af7c865aa
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ final class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
|
|||
// Mercurial 2.1 and up have phases which indicate if something is
|
||||
// published or not. To find which revs are outgoing, it's much
|
||||
// faster to check the phase instead of actually checking the server.
|
||||
if (!$this->supportsPhases()) {
|
||||
if ($this->supportsPhases()) {
|
||||
list($err, $stdout) = $this->execManualLocal(
|
||||
'log --branch %s -r %s --style default',
|
||||
$this->getBranchName(),
|
||||
|
|
Loading…
Add table
Reference in a new issue