Show More
@@ -663,9 +663,6 b' coreconfigitem(' | |||
|
663 | 663 | b'experimental', b'rust.index', default=False, |
|
664 | 664 | ) |
|
665 | 665 | coreconfigitem( |
|
666 | b'experimental', b'exp-persistent-nodemap.mmap', default=True, | |
|
667 | ) | |
|
668 | coreconfigitem( | |
|
669 | 666 | b'experimental', b'exp-persistent-nodemap.mode', default=b'compat', |
|
670 | 667 | ) |
|
671 | 668 | coreconfigitem( |
@@ -1082,6 +1079,10 b' coreconfigitem(' | |||
|
1082 | 1079 | default=True, |
|
1083 | 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 | 1086 | coreconfigitem( |
|
1086 | 1087 | b'storage', b'revlog.reuse-external-delta', default=True, |
|
1087 | 1088 | ) |
@@ -938,7 +938,7 b' def resolverevlogstorevfsoptions(ui, req' | |||
|
938 | 938 | options[b'rust.index'] = True |
|
939 | 939 | if NODEMAP_REQUIREMENT in requirements: |
|
940 | 940 | options[b'persistent-nodemap'] = True |
|
941 |
if ui.configbool(b' |
|
|
941 | if ui.configbool(b'storage', b'revlog.nodemap.mmap'): | |
|
942 | 942 | options[b'persistent-nodemap.mmap'] = True |
|
943 | 943 | epnm = ui.config(b'experimental', b'exp-persistent-nodemap.mode') |
|
944 | 944 | options[b'persistent-nodemap.mode'] = epnm |
@@ -156,12 +156,12 b' Test code path without mmap' | |||
|
156 | 156 | |
|
157 | 157 | $ echo bar > bar |
|
158 | 158 | $ hg add bar |
|
159 |
$ hg ci -m 'bar' --config |
|
|
159 | $ hg ci -m 'bar' --config storage.revlog.nodemap.mmap=no | |
|
160 | 160 | |
|
161 |
$ hg debugnodemap --check --config |
|
|
161 | $ hg debugnodemap --check --config storage.revlog.nodemap.mmap=yes | |
|
162 | 162 | revision in index: 5003 |
|
163 | 163 | revision in nodemap: 5003 |
|
164 |
$ hg debugnodemap --check --config |
|
|
164 | $ hg debugnodemap --check --config storage.revlog.nodemap.mmap=no | |
|
165 | 165 | revision in index: 5003 |
|
166 | 166 | revision in nodemap: 5003 |
|
167 | 167 |
General Comments 0
You need to be logged in to leave comments.
Login now