Mercurial > hg
changeset 49674:5af4a0a73e4c
find-delta: rename _isgooddeltainfo
Lets move to a more readable name now that we are allowed to. This cannot hurt.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 07 Nov 2022 17:57:28 -0500 |
parents | e33776297d1f |
children | 0fca63953810 |
files | mercurial/revlogutils/deltas.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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