changeset 34840:88624b40a9cb

hghave: disable demandimport when chg is running Chg disables demandimport on purpose for performance wins and therefore, it probably makes sense to indicate that demandimport is disabled when chg is running. Test Plan: Ran all the tests. Differential Revision: https://phab.mercurial-scm.org/D1161
author Saurabh Singh <singhsrb@fb.com>
date Tue, 17 Oct 2017 11:35:58 -0700
parents 110040e715c9
children 6bfe43dd20eb
files tests/hghave.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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():