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
--- a/tests/hghave.py Tue Nov 09 22:06:40 2021 +0530
+++ b/tests/hghave.py Wed Nov 10 10:50:54 2021 +0100
@@ -1061,7 +1061,7 @@
def has_dirstate_v2():
# Keep this logic in sync with `newreporequirements()` in `mercurial/localrepo.py`
return has_rust() and matchoutput(
- 'hg config format.exp-dirstate-v2', b'(?i)1|yes|true|on|always'
+ 'hg config format.exp-rc-dirstate-v2', b'(?i)1|yes|true|on|always'
)