##// END OF EJS Templates
persistent-nodemap: rename the storage.revlog.nodemap.mmap option...
marmoute -
r47024:7d096e5a default
parent child Browse files
Show More
@@ -1784,7 +1784,10 b' coreconfigitem('
1784 )
1784 )
1785 # experimental as long as rust is experimental (or a C version is implemented)
1785 # experimental as long as rust is experimental (or a C version is implemented)
1786 coreconfigitem(
1786 coreconfigitem(
1787 b'storage', b'revlog.nodemap.mmap', default=True, experimental=True
1787 b'storage',
1788 b'revlog.persistent-nodemap.mmap',
1789 default=True,
1790 experimental=True,
1788 )
1791 )
1789 # experimental as long as format.use-persistent-nodemap is.
1792 # experimental as long as format.use-persistent-nodemap is.
1790 coreconfigitem(
1793 coreconfigitem(
@@ -1045,7 +1045,7 b' def resolverevlogstorevfsoptions(ui, req'
1045 options[b'rust.index'] = True
1045 options[b'rust.index'] = True
1046 if requirementsmod.NODEMAP_REQUIREMENT in requirements:
1046 if requirementsmod.NODEMAP_REQUIREMENT in requirements:
1047 options[b'persistent-nodemap'] = True
1047 options[b'persistent-nodemap'] = True
1048 if ui.configbool(b'storage', b'revlog.nodemap.mmap'):
1048 if ui.configbool(b'storage', b'revlog.persistent-nodemap.mmap'):
1049 options[b'persistent-nodemap.mmap'] = True
1049 options[b'persistent-nodemap.mmap'] = True
1050 epnm = ui.config(b'storage', b'revlog.nodemap.mode')
1050 epnm = ui.config(b'storage', b'revlog.nodemap.mode')
1051 options[b'persistent-nodemap.mode'] = epnm
1051 options[b'persistent-nodemap.mode'] = epnm
@@ -169,12 +169,12 b' Test code path without mmap'
169
169
170 $ echo bar > bar
170 $ echo bar > bar
171 $ hg add bar
171 $ hg add bar
172 $ hg ci -m 'bar' --config storage.revlog.nodemap.mmap=no
172 $ hg ci -m 'bar' --config storage.revlog.persistent-nodemap.mmap=no
173
173
174 $ hg debugnodemap --check --config storage.revlog.nodemap.mmap=yes
174 $ hg debugnodemap --check --config storage.revlog.persistent-nodemap.mmap=yes
175 revision in index: 5003
175 revision in index: 5003
176 revision in nodemap: 5003
176 revision in nodemap: 5003
177 $ hg debugnodemap --check --config storage.revlog.nodemap.mmap=no
177 $ hg debugnodemap --check --config storage.revlog.persistent-nodemap.mmap=no
178 revision in index: 5003
178 revision in index: 5003
179 revision in nodemap: 5003
179 revision in nodemap: 5003
180
180
General Comments 0
You need to be logged in to leave comments. Login now