config: move the option to mmap rev branch cache in the storage section
See previous commit for rational.
--- 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