D1161: hghave: disable demandimport when chg is running
singhsrb (Saurabh Singh)
phabricator at mercurial-scm.org
Wed Oct 18 08:46:52 EDT 2017
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
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():
To: singhsrb, #hg-reviewers, quark
Cc: quark, mercurial-devel
More information about the Mercurial-devel
mailing list