changeset 51062:101c30938c0d

revlog: remove legacy usage of `_compengineopts` All core code is now getting the setting from the FeatureConfig object.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 10 Oct 2023 11:13:24 +0200
parents f0756d0636d1
children 8bdb2478c4bc
files mercurial/revlog.py
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlog.py	Tue Oct 10 11:12:06 2023 +0200
+++ b/mercurial/revlog.py	Tue Oct 10 11:13:24 2023 +0200
@@ -966,7 +966,9 @@
         except KeyError:
             try:
                 engine = util.compengines.forrevlogheader(t)
-                compressor = engine.revlogcompressor(self._compengineopts)
+                compressor = engine.revlogcompressor(
+                    self.feature_config.compression_engine_options
+                )
                 self._decompressors[t] = compressor
             except KeyError:
                 raise error.RevlogError(
@@ -977,7 +979,9 @@
     @util.propertycache
     def _compressor(self):
         engine = util.compengines[self.feature_config.compression_engine]
-        return engine.revlogcompressor(self._compengineopts)
+        return engine.revlogcompressor(
+            self.feature_config.compression_engine_options
+        )
 
     @util.propertycache
     def _decompressor(self):