# HG changeset patch # User Pierre-Yves David # Date 2023-10-10 08:03:42 # Node ID 683b96c416d8a150655d2acb9831858da882b225 # Parent 7d66621c534987b02a942eea0815d1ff3d36bfd1 revlog: skip opener options to pass enable_ellipsis We can directly set the option in the config object now. diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1165,7 +1165,7 @@ def resolverevlogstorevfsoptions(ui, req 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 diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -644,8 +644,7 @@ class revlog: ] 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