revlog: remove legacy usage of `_lazydelta`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 10 Oct 2023 11:36:55 +0200
changeset 51066 b79c73a7afce
parent 51065 14574a41a7a7
child 51067 26dcdbe15024
revlog: remove legacy usage of `_lazydelta` All core code is now getting the setting from the DeltaConfig object.
mercurial/revlog.py
--- a/mercurial/revlog.py	Tue Oct 10 11:36:34 2023 +0200
+++ b/mercurial/revlog.py	Tue Oct 10 11:36:55 2023 +0200
@@ -3457,7 +3457,7 @@
                     sidedata=sidedata,
                 )
             else:
-                if destrevlog._lazydelta:
+                if destrevlog.delta_config.lazy_delta:
                     dp = self.deltaparent(rev)
                     if dp != nullrev:
                         cachedelta = (dp, bytes(self._chunk(rev)))