Patchwork D1161: hghave: disable demandimport when chg is running

login
register
mail settings
Submitter phabricator
Date Oct. 18, 2017, 12:46 p.m.
Message ID <fd7c5c0bd802e7b404dd5cc9649cbf4a@localhost.localdomain>
Download mbox | patch
Permalink /patch/25158/
State Not Applicable
Headers show

Comments

phabricator - Oct. 18, 2017, 12:46 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG88624b40a9cb: hghave: disable demandimport when chg is running (authored by singhsrb, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1161?vs=2940&id=2969

REVISION DETAIL
  https://phab.mercurial-scm.org/D1161

AFFECTED FILES
  tests/hghave.py

CHANGE DETAILS




To: singhsrb, #hg-reviewers, quark
Cc: quark, mercurial-devel

Patch

diff --git a/tests/hghave.py b/tests/hghave.py
--- a/tests/hghave.py
+++ b/tests/hghave.py
@@ -601,7 +601,8 @@ 
 
 @check("demandimport", "demandimport enabled")
 def has_demandimport():
-    return os.environ.get('HGDEMANDIMPORT') != 'disable'
+    # chg disables demandimport intentionally for performance wins.
+    return ((not has_chg()) and os.environ.get('HGDEMANDIMPORT') != 'disable')
 
 @check("py3k", "running with Python 3.x")
 def has_py3k():