# HG changeset patch # User timeless # Date 1472164235 0 # Node ID b05a3a04f046a75ec1bbff08b1ecd8acc2f481fe # Parent a5ce381a8da0d03c8f275a46b34b07f3a90369c7 hghave: add demandimport checking diff -r a5ce381a8da0 -r b05a3a04f046 tests/hghave.py --- a/tests/hghave.py Thu Aug 25 22:51:39 2016 +0000 +++ b/tests/hghave.py Thu Aug 25 22:30:35 2016 +0000 @@ -530,6 +530,10 @@ br'other supported Python versions') return dpkg and dh and dh_py2 +@check("demandimport", "demandimport enabled") +def has_demandimport(): + return os.environ.get('HGDEMANDIMPORT') != 'disable' + @check("absimport", "absolute_import in __future__") def has_absimport(): import __future__