# HG changeset patch # User Pierre-Yves David # Date 1696929204 -7200 # Node ID 101c30938c0d6efe37ded527f5e2933a7f264a8c # Parent f0756d0636d1ce262b745132b6ca769ace0f7ee0 revlog: remove legacy usage of `_compengineopts` All core code is now getting the setting from the FeatureConfig object. diff -r f0756d0636d1 -r 101c30938c0d 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):