Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 51039:027bc364524b
revlog: skip opener options to pass mmap_index_threshold 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:03:50 +0200 |
parents | 683b96c416d8 |
children | 8ed03f773eac |
comparison
equal
deleted
inserted
replaced
51038:683b96c416d8 | 51039:027bc364524b |
---|---|
1116 if 0 <= chainspan: | 1116 if 0 <= chainspan: |
1117 delta_config.max_deltachain_span = 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 data_config.mmap_index_threshold = mmapindexthreshold |
1122 | 1122 |
1123 withsparseread = ui.configbool(b'experimental', b'sparse-read') | 1123 withsparseread = ui.configbool(b'experimental', b'sparse-read') |
1124 srdensitythres = float( | 1124 srdensitythres = float( |
1125 ui.config(b'experimental', b'sparse-read.density-threshold') | 1125 ui.config(b'experimental', b'sparse-read.density-threshold') |
1126 ) | 1126 ) |