diff mercurial/configitems.py @ 44788:6493f0a567c2

nodemap: add a new mode option, with an optional "warn" value When "warn" is set, user will get notified when the slow code, used for compatibility is used. This can help people to detect situation were using that feature will give them a slowdown instead of a speedup. Differential Revision: https://phab.mercurial-scm.org/D8414
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 14 Apr 2020 02:45:05 +0200
parents c70bcaf7927b
children d688a8d537b9
line wrap: on
line diff
--- a/mercurial/configitems.py	Sun Apr 05 18:32:46 2020 +0200
+++ b/mercurial/configitems.py	Tue Apr 14 02:45:05 2020 +0200
@@ -681,6 +681,9 @@
     b'experimental', b'exp-persistent-nodemap.mmap', default=True,
 )
 coreconfigitem(
+    b'experimental', b'exp-persistent-nodemap.mode', default=b'compat',
+)
+coreconfigitem(
     b'experimental', b'server.filesdata.recommended-batch-size', default=50000,
 )
 coreconfigitem(