##// END OF EJS Templates
nodemap: move the option for mmap usage to storage.revlog.nodemap.mmap...
marmoute -
r45299:059c99af default
parent child Browse files
Show More
@@ -663,9 +663,6 b' coreconfigitem('
663 b'experimental', b'rust.index', default=False,
663 b'experimental', b'rust.index', default=False,
664 )
664 )
665 coreconfigitem(
665 coreconfigitem(
666 b'experimental', b'exp-persistent-nodemap.mmap', default=True,
667 )
668 coreconfigitem(
669 b'experimental', b'exp-persistent-nodemap.mode', default=b'compat',
666 b'experimental', b'exp-persistent-nodemap.mode', default=b'compat',
670 )
667 )
671 coreconfigitem(
668 coreconfigitem(
@@ -1082,6 +1079,10 b' coreconfigitem('
1082 default=True,
1079 default=True,
1083 alias=[(b'format', b'aggressivemergedeltas')],
1080 alias=[(b'format', b'aggressivemergedeltas')],
1084 )
1081 )
1082 # experimental as long as rust is experimental (or a C version is implemented)
1083 coreconfigitem(
1084 b'storage', b'revlog.nodemap.mmap', default=True, experimental=True
1085 )
1085 coreconfigitem(
1086 coreconfigitem(
1086 b'storage', b'revlog.reuse-external-delta', default=True,
1087 b'storage', b'revlog.reuse-external-delta', default=True,
1087 )
1088 )
@@ -938,7 +938,7 b' def resolverevlogstorevfsoptions(ui, req'
938 options[b'rust.index'] = True
938 options[b'rust.index'] = True
939 if NODEMAP_REQUIREMENT in requirements:
939 if NODEMAP_REQUIREMENT in requirements:
940 options[b'persistent-nodemap'] = True
940 options[b'persistent-nodemap'] = True
941 if ui.configbool(b'experimental', b'exp-persistent-nodemap.mmap'):
941 if ui.configbool(b'storage', b'revlog.nodemap.mmap'):
942 options[b'persistent-nodemap.mmap'] = True
942 options[b'persistent-nodemap.mmap'] = True
943 epnm = ui.config(b'experimental', b'exp-persistent-nodemap.mode')
943 epnm = ui.config(b'experimental', b'exp-persistent-nodemap.mode')
944 options[b'persistent-nodemap.mode'] = epnm
944 options[b'persistent-nodemap.mode'] = epnm
@@ -156,12 +156,12 b' Test code path without mmap'
156
156
157 $ echo bar > bar
157 $ echo bar > bar
158 $ hg add bar
158 $ hg add bar
159 $ hg ci -m 'bar' --config experimental.exp-persistent-nodemap.mmap=no
159 $ hg ci -m 'bar' --config storage.revlog.nodemap.mmap=no
160
160
161 $ hg debugnodemap --check --config experimental.exp-persistent-nodemap.mmap=yes
161 $ hg debugnodemap --check --config storage.revlog.nodemap.mmap=yes
162 revision in index: 5003
162 revision in index: 5003
163 revision in nodemap: 5003
163 revision in nodemap: 5003
164 $ hg debugnodemap --check --config experimental.exp-persistent-nodemap.mmap=no
164 $ hg debugnodemap --check --config storage.revlog.nodemap.mmap=no
165 revision in index: 5003
165 revision in index: 5003
166 revision in nodemap: 5003
166 revision in nodemap: 5003
167
167
General Comments 0
You need to be logged in to leave comments. Login now