Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 51034:d900f74456cc
revlog: skip opener options to pass max_deltachain_span
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:03:09 +0200 |
parents | 83ce99f5e7f2 |
children | 8228e8dd96dd |
comparison
equal
deleted
inserted
replaced
51033:83ce99f5e7f2 | 51034:d900f74456cc |
---|---|
1112 delta_config.lazy_delta = lazydelta | 1112 delta_config.lazy_delta = lazydelta |
1113 delta_config.lazy_delta_base = lazydeltabase | 1113 delta_config.lazy_delta_base = lazydeltabase |
1114 | 1114 |
1115 chainspan = ui.configbytes(b'experimental', b'maxdeltachainspan') | 1115 chainspan = ui.configbytes(b'experimental', b'maxdeltachainspan') |
1116 if 0 <= chainspan: | 1116 if 0 <= chainspan: |
1117 options[b'maxdeltachainspan'] = chainspan | 1117 delta_config.max_deltachain_span = chainspan |
1118 | 1118 |
1119 mmapindexthreshold = ui.configbytes(b'experimental', b'mmapindexthreshold') | 1119 mmapindexthreshold = ui.configbytes(b'experimental', b'mmapindexthreshold') |
1120 if mmapindexthreshold is not None: | 1120 if mmapindexthreshold is not None: |
1121 options[b'mmapindexthreshold'] = mmapindexthreshold | 1121 options[b'mmapindexthreshold'] = mmapindexthreshold |
1122 | 1122 |