comparison tests/hghave.py @ 48319:6505d3902eac stable

hghave: update dirstate-v2 format config option It wasn't kept in sync with the new change in format name. Differential Revision: https://phab.mercurial-scm.org/D11744
author Raphaël Gomès <rgomes@octobus.net>
date Wed, 10 Nov 2021 10:50:54 +0100
parents 7dd48d5da64f
children f21e7748c257
comparison
equal deleted inserted replaced
48317:6e576e4665f4 48319:6505d3902eac
1059 1059
1060 @check('dirstate-v2', 'using the v2 format of .hg/dirstate') 1060 @check('dirstate-v2', 'using the v2 format of .hg/dirstate')
1061 def has_dirstate_v2(): 1061 def has_dirstate_v2():
1062 # Keep this logic in sync with `newreporequirements()` in `mercurial/localrepo.py` 1062 # Keep this logic in sync with `newreporequirements()` in `mercurial/localrepo.py`
1063 return has_rust() and matchoutput( 1063 return has_rust() and matchoutput(
1064 'hg config format.exp-dirstate-v2', b'(?i)1|yes|true|on|always' 1064 'hg config format.exp-rc-dirstate-v2', b'(?i)1|yes|true|on|always'
1065 ) 1065 )
1066 1066
1067 1067
1068 @check('sqlite', 'sqlite3 module and matching cli is available') 1068 @check('sqlite', 'sqlite3 module and matching cli is available')
1069 def has_sqlite(): 1069 def has_sqlite():