D1161: hghave: make 'on demand import' unsupported when chg is running
singhsrb (Saurabh Singh)
phabricator at mercurial-scm.org
Tue Oct 17 18:20:38 UTC 2017
singhsrb created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Chg does not support on demand import and therefore, it probably makes
sense to indicate that the 'on demand import' is unsupported when chg is
running.
TEST PLAN
Ran all the tests.
REPOSITORY
rHG Mercurial
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 does not support on demand importing.
+ return ((not has_chg()) and os.environ.get('HGDEMANDIMPORT') != 'disable')
@check("py3k", "running with Python 3.x")
def has_py3k():
To: singhsrb, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list