config: move the option to mmap rev branch cache in the storage section stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 04 Mar 2024 04:16:15 +0100
branchstable
changeset 51447 40943970b7ae
parent 51446 5d0d510d2db1
child 51448 89cd0dd41e4d
config: move the option to mmap rev branch cache in the storage section See previous commit for rational.
mercurial/branchmap.py
mercurial/configitems.toml
tests/test-branches.t
--- a/mercurial/branchmap.py	Mon Mar 04 04:13:33 2024 +0100
+++ b/mercurial/branchmap.py	Mon Mar 04 04:16:15 2024 +0100
@@ -732,7 +732,7 @@
 
         if self._names:
             try:
-                if repo.ui.configbool(b'format', b'mmap-revbranchcache'):
+                if repo.ui.configbool(b'storage', b'revbranchcache.mmap'):
                     with repo.cachevfs(_rbcrevs) as fp:
                         data = util.buffer(util.mmapread(fp))
                 else:
--- a/mercurial/configitems.toml	Mon Mar 04 04:13:33 2024 +0100
+++ b/mercurial/configitems.toml	Mon Mar 04 04:16:15 2024 +0100
@@ -2132,6 +2132,11 @@
 
 [[items]]
 section = "storage"
+name = "revbranchcache.mmap"
+default = true
+
+[[items]]
+section = "storage"
 name = "new-repo-backend"
 default = "revlogv1"
 experimental = true
@@ -2935,8 +2940,3 @@
 name = "date-format"
 default = ""
 in_core_extension = "blackbox"
-
-[[items]]
-section = "format"
-name = "mmap-revbranchcache"
-default = false
--- a/tests/test-branches.t	Mon Mar 04 04:13:33 2024 +0100
+++ b/tests/test-branches.t	Mon Mar 04 04:16:15 2024 +0100
@@ -2,8 +2,8 @@
 
 #if mmap
   $ cat <<EOF >> $HGRCPATH
-  > [format]
-  > mmap-revbranchcache=true
+  > [storage]
+  > revbranchcache.mmap=true
   > EOF
 #endif