Show More
@@ -1044,6 +1044,21 b' def resolverevlogstorevfsoptions(ui, req' | |||||
1044 | if ui.configbool(b'experimental', b'rust.index'): |
|
1044 | if ui.configbool(b'experimental', b'rust.index'): | |
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 | slow_path = ui.config( | |||
|
1048 | b'storage', b'revlog.persistent-nodemap.slow-path' | |||
|
1049 | ) | |||
|
1050 | if slow_path not in (b'allow'): | |||
|
1051 | default = ui.config_default( | |||
|
1052 | b'storage', b'revlog.persistent-nodemap.slow-path' | |||
|
1053 | ) | |||
|
1054 | msg = _( | |||
|
1055 | b'unknown value for config ' | |||
|
1056 | b'"storage.revlog.persistent-nodemap.slow-path": "%s"\n' | |||
|
1057 | ) | |||
|
1058 | ui.warn(msg % slow_path) | |||
|
1059 | if not ui.quiet: | |||
|
1060 | ui.warn(_(b'falling back to default value: %s\n') % default) | |||
|
1061 | slow_path = default | |||
1047 | options[b'persistent-nodemap'] = True |
|
1062 | options[b'persistent-nodemap'] = True | |
1048 | if ui.configbool(b'storage', b'revlog.persistent-nodemap.mmap'): |
|
1063 | if ui.configbool(b'storage', b'revlog.persistent-nodemap.mmap'): | |
1049 | options[b'persistent-nodemap.mmap'] = True |
|
1064 | options[b'persistent-nodemap.mmap'] = True |
@@ -110,6 +110,15 b' add a new commit' | |||||
110 | $ echo foo > foo |
|
110 | $ echo foo > foo | |
111 | $ hg add foo |
|
111 | $ hg add foo | |
112 |
|
112 | |||
|
113 | ||||
|
114 | Check slow-path config value handling | |||
|
115 | ------------------------------------- | |||
|
116 | ||||
|
117 | $ hg id --config "storage.revlog.persistent-nodemap.slow-path=invalid-value" | |||
|
118 | unknown value for config "storage.revlog.persistent-nodemap.slow-path": "invalid-value" | |||
|
119 | falling back to default value: allow | |||
|
120 | 6b02b8c7b966+ tip | |||
|
121 | ||||
113 | #if no-pure no-rust |
|
122 | #if no-pure no-rust | |
114 |
|
123 | |||
115 | $ hg ci -m 'foo' --config "storage.revlog.nodemap.mode=strict" |
|
124 | $ hg ci -m 'foo' --config "storage.revlog.nodemap.mode=strict" |
General Comments 0
You need to be logged in to leave comments.
Login now