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