find-delta: rename _isgooddeltainfo
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 07 Nov 2022 17:57:28 -0500
changeset 49674 5af4a0a73e4c
parent 49673 e33776297d1f
child 49675 0fca63953810
find-delta: rename _isgooddeltainfo Lets move to a more readable name now that we are allowed to. This cannot hurt.
mercurial/revlogutils/deltas.py
--- a/mercurial/revlogutils/deltas.py	Mon Nov 07 18:06:17 2022 -0500
+++ b/mercurial/revlogutils/deltas.py	Mon Nov 07 17:57:28 2022 -0500
@@ -576,7 +576,7 @@
     )
 
 
-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 @@
                     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