# HG changeset patch # User Pierre-Yves David # Date 2022-11-07 22:57:28 # Node ID 5af4a0a73e4cd42225e4915783af8e9a0549af14 # Parent e33776297d1f95a119b9bda8c5d6648e89a2c54a find-delta: rename _isgooddeltainfo Lets move to a more readable name now that we are allowed to. This cannot hurt. diff --git a/mercurial/revlogutils/deltas.py b/mercurial/revlogutils/deltas.py --- a/mercurial/revlogutils/deltas.py +++ b/mercurial/revlogutils/deltas.py @@ -576,7 +576,7 @@ def drop_u_compression(delta): ) -def isgooddeltainfo(revlog, deltainfo, revinfo): +def is_good_delta_info(revlog, deltainfo, revinfo): """Returns True if the given delta is good. Good means that it is within the disk span, disk size, and chain length bounds that we know to be performant.""" @@ -1295,7 +1295,7 @@ class deltacomputer: msg %= delta_end - delta_start self._write_debug(msg) if candidatedelta is not None: - if isgooddeltainfo(self.revlog, candidatedelta, revinfo): + if is_good_delta_info(self.revlog, candidatedelta, revinfo): if debug_search: msg = b"DBG-DELTAS-SEARCH: DELTA: length=%d (GOOD)\n" msg %= candidatedelta.deltalen