# HG changeset patch # User timeless <timel...@mozdev.org> # Date 1472164235 0 # Thu Aug 25 22:30:35 2016 +0000 # Node ID 2122bf277e3ad68bd59d1d5cea79fea137b09c5a # Parent d240f3e2d0d3f2be06ca5a7b04fa4b6d99e695ff # Available At https://bitbucket.org/timeless/mercurial-crew # hg pull https://bitbucket.org/timeless/mercurial-crew -r 2122bf277e3a hghave: add demandimport checking
diff -r d240f3e2d0d3 -r 2122bf277e3a tests/hghave.py --- a/tests/hghave.py Thu Aug 25 22:03:51 2016 +0000 +++ b/tests/hghave.py Thu Aug 25 22:30:35 2016 +0000 @@ -522,6 +522,11 @@ br'other supported Python versions') return dpkg and dh and dh_py2 +@check("demandimport", "demandimport enabled") +def has_demandimport(): + return not ('HGDEMANDIMPORT' in os.environ and + os.environ['HGDEMANDIMPORT'] == 'disable') + @check("absimport", "absolute_import in __future__") def has_absimport(): import __future__ _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel