Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revlog.py @ 51046:683b96c416d8
revlog: skip opener options to pass enable_ellipsis
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:42 +0200 |
parents | 7d66621c5349 |
children | 027bc364524b |
comparison
equal
deleted
inserted
replaced
51045:7d66621c5349 | 51046:683b96c416d8 |
---|---|
642 self.data_config.sr_density_threshold = opts[ | 642 self.data_config.sr_density_threshold = opts[ |
643 b'sparse-read-density-threshold' | 643 b'sparse-read-density-threshold' |
644 ] | 644 ] |
645 if b'sparse-read-min-gap-size' in opts: | 645 if b'sparse-read-min-gap-size' in opts: |
646 self.data_config.sr_min_gap_size = opts[b'sparse-read-min-gap-size'] | 646 self.data_config.sr_min_gap_size = opts[b'sparse-read-min-gap-size'] |
647 if opts.get(b'enableellipsis'): | 647 if self.feature_config.enable_ellipsis: |
648 self.feature_config.enable_ellipsis = True | |
649 self._flagprocessors[REVIDX_ELLIPSIS] = ellipsisprocessor | 648 self._flagprocessors[REVIDX_ELLIPSIS] = ellipsisprocessor |
650 | 649 |
651 # revlog v0 doesn't have flag processors | 650 # revlog v0 doesn't have flag processors |
652 for flag, processor in opts.get(b'flagprocessors', {}).items(): | 651 for flag, processor in opts.get(b'flagprocessors', {}).items(): |
653 flagutil.insertflagprocessor(flag, processor, self._flagprocessors) | 652 flagutil.insertflagprocessor(flag, processor, self._flagprocessors) |