diff mercurial/revlog.py @ 51037:7d66621c5349

revlog: skip opener options to pass compression option values 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:34 +0200
parents 940445de2b09
children 683b96c416d8
line wrap: on
line diff
--- a/mercurial/revlog.py	Tue Oct 10 10:03:26 2023 +0200
+++ b/mercurial/revlog.py	Tue Oct 10 10:03:34 2023 +0200
@@ -628,11 +628,6 @@
         else:
             new_header = REVLOG_DEFAULT_VERSION
 
-        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']
-        if b'zstd.level' in opts:
-            comp_engine_opts[b'zstd.level'] = opts[b'zstd.level']
         if self._mmaplargeindex and b'mmapindexthreshold' in opts:
             mmapindexthreshold = opts[b'mmapindexthreshold']
             self.data_config.mmap_index_threshold = mmapindexthreshold