Mercurial > public > mercurial-scm > hg
comparison mercurial/revlog.py @ 51040:8ed03f773eac
revlog: skip opener options to pass sparse_revlog 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:58 +0200 |
parents | 027bc364524b |
children | e2941c398f10 |
comparison
equal
deleted
inserted
replaced
51039:027bc364524b | 51040:8ed03f773eac |
---|---|
628 new_header = REVLOG_DEFAULT_VERSION | 628 new_header = REVLOG_DEFAULT_VERSION |
629 | 629 |
630 mmapindexthreshold = None | 630 mmapindexthreshold = None |
631 if self._mmaplargeindex: | 631 if self._mmaplargeindex: |
632 mmapindexthreshold = self.data_config.mmap_index_threshold | 632 mmapindexthreshold = self.data_config.mmap_index_threshold |
633 if b'sparse-revlog' in opts: | |
634 self.delta_config.sparse_revlog = bool(opts[b'sparse-revlog']) | |
635 if self.delta_config.sparse_revlog: | 633 if self.delta_config.sparse_revlog: |
636 # sparse-revlog forces sparse-read | 634 # sparse-revlog forces sparse-read |
637 self.data_config.with_sparse_read = True | 635 self.data_config.with_sparse_read = True |
638 elif b'with-sparse-read' in opts: | 636 elif b'with-sparse-read' in opts: |
639 self.data_config.with_sparse_read = bool(opts[b'with-sparse-read']) | 637 self.data_config.with_sparse_read = bool(opts[b'with-sparse-read']) |