diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1149,7 +1149,7 @@ def resolverevlogstorevfsoptions(ui, req # 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 --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -628,8 +628,6 @@ class revlog: 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']