tests/hghave.py
changeset 34840 88624b40a9cb
parent 34696 15b561fffde5
child 34885 df2ff314e36f
--- a/tests/hghave.py	Tue Oct 17 10:41:56 2017 -0700
+++ b/tests/hghave.py	Tue Oct 17 11:35:58 2017 -0700
@@ -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():