revlog: remove legacy usage of `_compengineopts`
All core code is now getting the setting from the FeatureConfig object.
--- 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):