diff mercurial/configitems.py @ 49680:ecd28d89c29e stable

dirstate-v2: add devel config option to control write behavior This will help us to write predictable tests checking behavior in each case.
author Rapha?l Gom?s <rgomes@octobus.net>
date Tue, 28 Feb 2023 15:49:53 +0100
parents ae61851e6fe2
children fc8e37c380d3
line wrap: on
line diff
--- a/mercurial/configitems.py	Fri Feb 24 18:21:54 2023 +0100
+++ b/mercurial/configitems.py	Tue Feb 28 15:49:53 2023 +0100
@@ -640,6 +640,15 @@
     b'deprec-warn',
     default=False,
 )
+# possible values:
+# - auto (the default)
+# - force-append
+# - force-new
+coreconfigitem(
+    b'devel',
+    b'dirstate.v2.data_update_mode',
+    default="auto",
+)
 coreconfigitem(
     b'devel',
     b'disableloaddefaultcerts',