# HG changeset patch # User Arseniy Alekseyev # Date 2022-11-18 13:52:18 # Node ID 8cd39c20445e144cd6977d9062279a2dcdcef230 # Parent 302dd8ae27458a1f72ca2d7e1ad3c156233a1947 tests: fix the detection of dirstate-v2 in hghave.py diff --git a/tests/hghave.py b/tests/hghave.py --- a/tests/hghave.py +++ b/tests/hghave.py @@ -1077,8 +1077,8 @@ def has_repofncache(): @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' )