# HG changeset patch # User Pierre-Yves David # Date 1709522175 -3600 # Node ID 40943970b7ae22d3504fac4f639c2ea0404fd978 # Parent 5d0d510d2db12b4e004dff73a4140965e2f3aaab config: move the option to mmap rev branch cache in the storage section See previous commit for rational. diff -r 5d0d510d2db1 -r 40943970b7ae mercurial/branchmap.py --- 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: diff -r 5d0d510d2db1 -r 40943970b7ae mercurial/configitems.toml --- 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 diff -r 5d0d510d2db1 -r 40943970b7ae tests/test-branches.t --- 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 <> $HGRCPATH - > [format] - > mmap-revbranchcache=true + > [storage] + > revbranchcache.mmap=true > EOF #endif