tests/hghave.py
branchstable
changeset 49620 8cd39c20445e
parent 49281 223d55086d7c
child 49782 cafe34655335
equal deleted inserted replaced
49619:302dd8ae2745 49620:8cd39c20445e
  1075 
  1075 
  1076 
  1076 
  1077 @check('dirstate-v2', 'using the v2 format of .hg/dirstate')
  1077 @check('dirstate-v2', 'using the v2 format of .hg/dirstate')
  1078 def has_dirstate_v2():
  1078 def has_dirstate_v2():
  1079     # Keep this logic in sync with `newreporequirements()` in `mercurial/localrepo.py`
  1079     # Keep this logic in sync with `newreporequirements()` in `mercurial/localrepo.py`
  1080     return has_rust() and matchoutput(
  1080     return matchoutput(
  1081         'hg config format.exp-rc-dirstate-v2', b'(?i)1|yes|true|on|always'
  1081         'hg config format.use-dirstate-v2', b'(?i)1|yes|true|on|always'
  1082     )
  1082     )
  1083 
  1083 
  1084 
  1084 
  1085 @check('sqlite', 'sqlite3 module and matching cli is available')
  1085 @check('sqlite', 'sqlite3 module and matching cli is available')
  1086 def has_sqlite():
  1086 def has_sqlite():