##// END OF EJS Templates
find-delta: rename _isgooddeltainfo...
marmoute -
r50569:5af4a0a7 default
parent child Browse files
Show More
@@ -576,7 +576,7 b' def drop_u_compression(delta):'
576 )
576 )
577
577
578
578
579 def isgooddeltainfo(revlog, deltainfo, revinfo):
579 def is_good_delta_info(revlog, deltainfo, revinfo):
580 """Returns True if the given delta is good. Good means that it is within
580 """Returns True if the given delta is good. Good means that it is within
581 the disk span, disk size, and chain length bounds that we know to be
581 the disk span, disk size, and chain length bounds that we know to be
582 performant."""
582 performant."""
@@ -1295,7 +1295,7 b' class deltacomputer:'
1295 msg %= delta_end - delta_start
1295 msg %= delta_end - delta_start
1296 self._write_debug(msg)
1296 self._write_debug(msg)
1297 if candidatedelta is not None:
1297 if candidatedelta is not None:
1298 if isgooddeltainfo(self.revlog, candidatedelta, revinfo):
1298 if is_good_delta_info(self.revlog, candidatedelta, revinfo):
1299 if debug_search:
1299 if debug_search:
1300 msg = b"DBG-DELTAS-SEARCH: DELTA: length=%d (GOOD)\n"
1300 msg = b"DBG-DELTAS-SEARCH: DELTA: length=%d (GOOD)\n"
1301 msg %= candidatedelta.deltalen
1301 msg %= candidatedelta.deltalen
General Comments 0
You need to be logged in to leave comments. Login now