Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/localrepo.py @ 51041:83ce99f5e7f2
revlog: skip opener options to pass lazy_delta values
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:01 +0200 |
parents | 6ccb07b9eeeb |
children | d900f74456cc |
comparison
equal
deleted
inserted
replaced
51040:6ccb07b9eeeb | 51041:83ce99f5e7f2 |
---|---|
1105 lazydeltabase = False | 1105 lazydeltabase = False |
1106 if lazydelta: | 1106 if lazydelta: |
1107 lazydeltabase = ui.configbool( | 1107 lazydeltabase = ui.configbool( |
1108 b'storage', b'revlog.reuse-external-delta-parent' | 1108 b'storage', b'revlog.reuse-external-delta-parent' |
1109 ) | 1109 ) |
1110 if lazydeltabase is None: | 1110 if lazydeltabase is None: |
1111 lazydeltabase = not scmutil.gddeltaconfig(ui) | 1111 lazydeltabase = not scmutil.gddeltaconfig(ui) |
1112 options[b'lazydelta'] = lazydelta | 1112 delta_config.lazy_delta = lazydelta |
1113 options[b'lazydeltabase'] = 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 options[b'maxdeltachainspan'] = chainspan |
1118 | 1118 |