Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 51029:774c00348f9f
revlog: skip opener option to pass chunk_cache_size value
We can directly set the option in the config object now.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 10 Oct 2023 10:02:29 +0200 |
parents | 133f5a54ed9d |
children | cd16b6895f62 |
comparison
equal
deleted
inserted
replaced
51028:133f5a54ed9d | 51029:774c00348f9f |
---|---|
1085 options[b'generaldelta'] = True | 1085 options[b'generaldelta'] = True |
1086 | 1086 |
1087 # experimental config: format.chunkcachesize | 1087 # experimental config: format.chunkcachesize |
1088 chunkcachesize = ui.configint(b'format', b'chunkcachesize') | 1088 chunkcachesize = ui.configint(b'format', b'chunkcachesize') |
1089 if chunkcachesize is not None: | 1089 if chunkcachesize is not None: |
1090 options[b'chunkcachesize'] = chunkcachesize | 1090 data_config.chunk_cache_size = chunkcachesize |
1091 | 1091 |
1092 deltabothparents = ui.configbool( | 1092 deltabothparents = ui.configbool( |
1093 b'storage', b'revlog.optimize-delta-parent-choice' | 1093 b'storage', b'revlog.optimize-delta-parent-choice' |
1094 ) | 1094 ) |
1095 options[b'deltabothparents'] = deltabothparents | 1095 options[b'deltabothparents'] = deltabothparents |