# HG changeset patch # User Pierre-Yves David # Date 1700766574 -3600 # Node ID d58e14262587dc2c55ad88dc53df461f2aba93bc # Parent 55582607362540330e0a3244b699ee17fea74819 delta-find: drop some dead debug code Seems like it was never put to use, so lets simply remove it for now. diff -r 555826073625 -r d58e14262587 mercurial/revlogutils/deltas.py --- a/mercurial/revlogutils/deltas.py Sun Jan 07 03:34:27 2024 +0100 +++ b/mercurial/revlogutils/deltas.py Thu Nov 23 20:09:34 2023 +0100 @@ -1020,19 +1020,14 @@ # This logic only applies to general delta repositories and can be # disabled through configuration. Disabling reuse source delta is # useful when we want to make sure we recomputed "optimal" deltas. - debug_info = None if ( self.cachedelta is not None and self.cachedelta[2] > DELTA_BASE_REUSE_NO ): # Assume what we received from the server is a good choice # build delta will reuse the cache - if debug_info is not None: - debug_info['cached-delta.tested'] += 1 good = yield (self.cachedelta[0],) if good is not None: - if debug_info is not None: - debug_info['cached-delta.accepted'] += 1 yield None return groups = self._raw_groups() @@ -1072,10 +1067,6 @@ ) good = yield children - if debug_info is not None: - if good is None: - debug_info['no-solution'] += 1 - yield None def _raw_groups(self):