tests/hghave.py
changeset 47279 40b51c28b242
parent 47080 94c0c36299b1
child 47301 97f04eaafa65
equal deleted inserted replaced
47278:6a60f03d2241 47279:40b51c28b242
  1043 @check('repofncache', 'repository has an fncache')
  1043 @check('repofncache', 'repository has an fncache')
  1044 def has_repofncache():
  1044 def has_repofncache():
  1045     return 'fncache' in getrepofeatures()
  1045     return 'fncache' in getrepofeatures()
  1046 
  1046 
  1047 
  1047 
       
  1048 @check('dirstate-v2', 'using the v2 format of .hg/dirstate')
       
  1049 def has_dirstate_v2():
       
  1050     # Keep this logic in sync with `newreporequirements()` in `mercurial/localrepo.py`
       
  1051     return has_rust() and matchoutput(
       
  1052         'hg config format.exp-dirstate-v2', b'(?i)1|yes|true|on|always'
       
  1053     )
       
  1054 
       
  1055 
  1048 @check('sqlite', 'sqlite3 module and matching cli is available')
  1056 @check('sqlite', 'sqlite3 module and matching cli is available')
  1049 def has_sqlite():
  1057 def has_sqlite():
  1050     try:
  1058     try:
  1051         import sqlite3
  1059         import sqlite3
  1052 
  1060