# HG changeset patch # User Pierre-Yves David # Date 1696925006 -7200 # Node ID 940445de2b09563f879ce56c70e1ef3670e082eb # Parent 8228e8dd96dd791502845b5fd4d04f367c20b93a revlog: skip opener options to pass compression_engine value We can directly set the option in the config object now. diff -r 8228e8dd96dd -r 940445de2b09 mercurial/localrepo.py --- a/mercurial/localrepo.py Tue Oct 10 10:03:18 2023 +0200 +++ b/mercurial/localrepo.py Tue Oct 10 10:03:26 2023 +0200 @@ -1149,7 +1149,7 @@ # The compression used for new entries will be "the last one" prefix = r.startswith if prefix(b'revlog-compression-') or prefix(b'exp-compression-'): - options[b'compengine'] = r.split(b'-', 2)[2] + feature_config.compression_engine = r.split(b'-', 2)[2] options[b'zlib.level'] = ui.configint(b'storage', b'revlog.zlib.level') if options[b'zlib.level'] is not None: diff -r 8228e8dd96dd -r 940445de2b09 mercurial/revlog.py --- a/mercurial/revlog.py Tue Oct 10 10:03:18 2023 +0200 +++ b/mercurial/revlog.py Tue Oct 10 10:03:26 2023 +0200 @@ -628,8 +628,6 @@ else: new_header = REVLOG_DEFAULT_VERSION - if b'compengine' in opts: - self.feature_config.compression_engine = opts[b'compengine'] comp_engine_opts = self.feature_config.compression_engine_options if b'zlib.level' in opts: comp_engine_opts[b'zlib.level'] = opts[b'zlib.level']