Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revlog.py @ 51049:e2941c398f10
revlog: skip opener options to pass sparse reading 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:04:06 +0200 |
parents | 8ed03f773eac |
children | f636103c4d67 |
line wrap: on
line diff
--- a/mercurial/revlog.py Tue Oct 10 10:03:58 2023 +0200 +++ b/mercurial/revlog.py Tue Oct 10 10:04:06 2023 +0200 @@ -630,17 +630,6 @@ mmapindexthreshold = None if self._mmaplargeindex: mmapindexthreshold = self.data_config.mmap_index_threshold - if self.delta_config.sparse_revlog: - # sparse-revlog forces sparse-read - self.data_config.with_sparse_read = True - elif b'with-sparse-read' in opts: - self.data_config.with_sparse_read = bool(opts[b'with-sparse-read']) - if b'sparse-read-density-threshold' in opts: - self.data_config.sr_density_threshold = opts[ - b'sparse-read-density-threshold' - ] - if b'sparse-read-min-gap-size' in opts: - self.data_config.sr_min_gap_size = opts[b'sparse-read-min-gap-size'] if self.feature_config.enable_ellipsis: self._flagprocessors[REVIDX_ELLIPSIS] = ellipsisprocessor