changeset 51447:40943970b7ae stable

config: move the option to mmap rev branch cache in the storage section See previous commit for rational.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 04 Mar 2024 04:16:15 +0100
parents 5d0d510d2db1
children 89cd0dd41e4d
files mercurial/branchmap.py mercurial/configitems.toml tests/test-branches.t
diffstat 3 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- 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