diff --git a/mercurial/configitems.py b/mercurial/configitems.py --- a/mercurial/configitems.py +++ b/mercurial/configitems.py @@ -1769,7 +1769,10 @@ ) # experimental as long as rust is experimental (or a C version is implemented) coreconfigitem( - b'storage', b'revlog.nodemap.mmap', default=True, experimental=True + b'storage', + b'revlog.persistent-nodemap.mmap', + default=True, + experimental=True, ) # experimental as long as format.use-persistent-nodemap is. coreconfigitem( diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1045,7 +1045,7 @@ options[b'rust.index'] = True if requirementsmod.NODEMAP_REQUIREMENT in requirements: options[b'persistent-nodemap'] = True - if ui.configbool(b'storage', b'revlog.nodemap.mmap'): + if ui.configbool(b'storage', b'revlog.persistent-nodemap.mmap'): options[b'persistent-nodemap.mmap'] = True epnm = ui.config(b'storage', b'revlog.nodemap.mode') options[b'persistent-nodemap.mode'] = epnm diff --git a/tests/test-persistent-nodemap.t b/tests/test-persistent-nodemap.t --- a/tests/test-persistent-nodemap.t +++ b/tests/test-persistent-nodemap.t @@ -169,12 +169,12 @@ $ echo bar > bar $ hg add bar - $ hg ci -m 'bar' --config storage.revlog.nodemap.mmap=no + $ hg ci -m 'bar' --config storage.revlog.persistent-nodemap.mmap=no - $ hg debugnodemap --check --config storage.revlog.nodemap.mmap=yes + $ hg debugnodemap --check --config storage.revlog.persistent-nodemap.mmap=yes revision in index: 5003 revision in nodemap: 5003 - $ hg debugnodemap --check --config storage.revlog.nodemap.mmap=no + $ hg debugnodemap --check --config storage.revlog.persistent-nodemap.mmap=no revision in index: 5003 revision in nodemap: 5003