revlog: remove legacy usage of `_debug_delta`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 11 Oct 2023 00:04:08 +0200
changeset 51054 ab2bc31fa91f
parent 51053 96f521df2508
child 51055 fa7d307e2150
revlog: remove legacy usage of `_debug_delta` All core code is now getting the setting from the DeltaConfig object.
mercurial/revlog.py
--- a/mercurial/revlog.py	Tue Oct 10 11:07:15 2023 +0200
+++ b/mercurial/revlog.py	Wed Oct 11 00:04:08 2023 +0200
@@ -2782,7 +2782,7 @@
 
         if deltacomputer is None:
             write_debug = None
-            if self._debug_delta:
+            if self.delta_config.debug_delta:
                 write_debug = transaction._report
             deltacomputer = deltautil.deltacomputer(
                 self, write_debug=write_debug
@@ -3026,7 +3026,7 @@
         try:
             with self._writing(transaction):
                 write_debug = None
-                if self._debug_delta:
+                if self.delta_config.debug_delta:
                     write_debug = transaction._report
                 deltacomputer = deltautil.deltacomputer(
                     self,
@@ -3408,7 +3408,7 @@
     ):
         """perform the core duty of `revlog.clone` after parameter processing"""
         write_debug = None
-        if self._debug_delta:
+        if self.delta_config.debug_delta:
             write_debug = tr._report
         deltacomputer = deltautil.deltacomputer(
             destrevlog,