changeset 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
files mercurial/localrepo.py mercurial/revlog.py
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Tue Oct 10 10:03:34 2023 +0200
+++ b/mercurial/localrepo.py	Tue Oct 10 10:03:42 2023 +0200
@@ -1165,7 +1165,7 @@
     feature_config.compression_engine_options[b'zstd.level'] = zstd_level
 
     if requirementsmod.NARROW_REQUIREMENT in requirements:
-        options[b'enableellipsis'] = True
+        feature_config.enable_ellipsis = True
 
     if ui.configbool(b'experimental', b'rust.index'):
         options[b'rust.index'] = True
--- a/mercurial/revlog.py	Tue Oct 10 10:03:34 2023 +0200
+++ b/mercurial/revlog.py	Tue Oct 10 10:03:42 2023 +0200
@@ -644,8 +644,7 @@
             ]
         if b'sparse-read-min-gap-size' in opts:
             self.data_config.sr_min_gap_size = opts[b'sparse-read-min-gap-size']
-        if opts.get(b'enableellipsis'):
-            self.feature_config.enable_ellipsis = True
+        if self.feature_config.enable_ellipsis:
             self._flagprocessors[REVIDX_ELLIPSIS] = ellipsisprocessor
 
         # revlog v0 doesn't have flag processors