revlog: remove legacy usage of `_compengineopts`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 10 Oct 2023 11:13:24 +0200
changeset 51057 101c30938c0d
parent 51056 f0756d0636d1
child 51058 8bdb2478c4bc
revlog: remove legacy usage of `_compengineopts` All core code is now getting the setting from the FeatureConfig object.
mercurial/revlog.py
--- 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):