Mercurial > hg
comparison mercurial/revlog.py @ 51049:3977068c638c
revlog: remove legacy usage of `_mmaplargeindex`
All core code is now getting the setting from the DataConfig object.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 10 Oct 2023 11:02:24 +0200 |
parents | 59c6f99723b1 |
children | 0d33f4b0c4cb |
comparison
equal
deleted
inserted
replaced
51048:59c6f99723b1 | 51049:3977068c638c |
---|---|
626 new_header = REVLOGV0 | 626 new_header = REVLOGV0 |
627 else: | 627 else: |
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.data_config.mmap_large_index: |
632 mmapindexthreshold = self.data_config.mmap_index_threshold | 632 mmapindexthreshold = self.data_config.mmap_index_threshold |
633 if self.feature_config.enable_ellipsis: | 633 if self.feature_config.enable_ellipsis: |
634 self._flagprocessors[REVIDX_ELLIPSIS] = ellipsisprocessor | 634 self._flagprocessors[REVIDX_ELLIPSIS] = ellipsisprocessor |
635 | 635 |
636 # revlog v0 doesn't have flag processors | 636 # revlog v0 doesn't have flag processors |