changeset 51054:ab2bc31fa91f

revlog: remove legacy usage of `_debug_delta` All core code is now getting the setting from the DeltaConfig object.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 11 Oct 2023 00:04:08 +0200
parents 96f521df2508
children fa7d307e2150
files mercurial/revlog.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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,