comparison tests/hghave.py @ 49620:8cd39c20445e stable

tests: fix the detection of dirstate-v2 in hghave.py
author Arseniy Alekseyev <aalekseyev@janestreet.com>
date Fri, 18 Nov 2022 13:52:18 +0000
parents 223d55086d7c
children cafe34655335
comparison
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():