changeset 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 302dd8ae2745
children 55c6ebd11cb9
files tests/hghave.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/hghave.py	Thu Nov 17 14:37:43 2022 +0000
+++ b/tests/hghave.py	Fri Nov 18 13:52:18 2022 +0000
@@ -1077,8 +1077,8 @@
 @check('dirstate-v2', 'using the v2 format of .hg/dirstate')
 def has_dirstate_v2():
     # Keep this logic in sync with `newreporequirements()` in `mercurial/localrepo.py`
-    return has_rust() and matchoutput(
-        'hg config format.exp-rc-dirstate-v2', b'(?i)1|yes|true|on|always'
+    return matchoutput(
+        'hg config format.use-dirstate-v2', b'(?i)1|yes|true|on|always'
     )