tests/hghave.py
changeset 34840 88624b40a9cb
parent 34696 15b561fffde5
child 34885 df2ff314e36f
equal deleted inserted replaced
34839:110040e715c9 34840:88624b40a9cb
   599     path = '%s/../contrib/debian/control' % os.environ['TESTDIR']
   599     path = '%s/../contrib/debian/control' % os.environ['TESTDIR']
   600     return matchoutput('dpkg-checkbuilddeps %s' % path, br'')
   600     return matchoutput('dpkg-checkbuilddeps %s' % path, br'')
   601 
   601 
   602 @check("demandimport", "demandimport enabled")
   602 @check("demandimport", "demandimport enabled")
   603 def has_demandimport():
   603 def has_demandimport():
   604     return os.environ.get('HGDEMANDIMPORT') != 'disable'
   604     # chg disables demandimport intentionally for performance wins.
       
   605     return ((not has_chg()) and os.environ.get('HGDEMANDIMPORT') != 'disable')
   605 
   606 
   606 @check("py3k", "running with Python 3.x")
   607 @check("py3k", "running with Python 3.x")
   607 def has_py3k():
   608 def has_py3k():
   608     return 3 == sys.version_info[0]
   609     return 3 == sys.version_info[0]
   609 
   610