diff tests/test-dirstate-race.t @ 48235:5c567aca080d

dirstate-v2: add an option to prevent unintentional slow dirstate-v2 This is the project policy discussed in November 2020 and already put to use for the persistent nodemap. Differential Revision: https://phab.mercurial-scm.org/D11668
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 15 Oct 2021 01:27:39 +0200
parents b4f83c9e7905
children bf11ff22a9af
line wrap: on
line diff
--- a/tests/test-dirstate-race.t	Thu Oct 14 22:35:46 2021 -0700
+++ b/tests/test-dirstate-race.t	Fri Oct 15 01:27:39 2021 +0200
@@ -1,8 +1,12 @@
 #testcases dirstate-v1 dirstate-v2
 
 #if dirstate-v2
-  $ echo '[format]' >> $HGRCPATH
-  $ echo 'exp-dirstate-v2=1' >> $HGRCPATH
+  $ cat >> $HGRCPATH << EOF
+  > [format]
+  > exp-dirstate-v2=1
+  > [storage]
+  > dirstate-v2.slow-path=allow
+  > EOF
 #endif
 
   $ hg init repo