tests/hghave.py
changeset 37346 45a4799174a1
parent 37342 4e6a6d0dccee
child 37415 c2c8962a9465
equal deleted inserted replaced
37345:b09a25d74592 37346:45a4799174a1
   729     a space-delimited list of feature strings. Strings beginning with ``-``
   729     a space-delimited list of feature strings. Strings beginning with ``-``
   730     mean to remove.
   730     mean to remove.
   731     """
   731     """
   732     # Default list provided by core.
   732     # Default list provided by core.
   733     features = {
   733     features = {
       
   734         'bundlerepo',
   734         'revlogstore',
   735         'revlogstore',
   735     }
   736     }
   736 
   737 
   737     # Features that imply other features.
   738     # Features that imply other features.
   738     implies = {
   739     implies = {
   739         'simplestore': ['-revlogstore'],
   740         'simplestore': ['-revlogstore', '-bundlerepo'],
   740     }
   741     }
   741 
   742 
   742     for override in os.environ.get('HGREPOFEATURES', '').split(' '):
   743     for override in os.environ.get('HGREPOFEATURES', '').split(' '):
   743         if not override:
   744         if not override:
   744             continue
   745             continue
   763     return 'revlogstore' in getrepofeatures()
   764     return 'revlogstore' in getrepofeatures()
   764 
   765 
   765 @check('reposimplestore', 'repository using simple storage extension')
   766 @check('reposimplestore', 'repository using simple storage extension')
   766 def has_reposimplestore():
   767 def has_reposimplestore():
   767     return 'simplestore' in getrepofeatures()
   768     return 'simplestore' in getrepofeatures()
       
   769 
       
   770 @check('repobundlerepo', 'whether we can open bundle files as repos')
       
   771 def has_repobundlerepo():
       
   772     return 'bundlerepo' in getrepofeatures()