##// END OF EJS Templates
delta-find: expand a function definition and call before extendin it...
marmoute -
r50507:2afee217 default
parent child Browse files
Show More
@@ -655,7 +655,13 b' def isgooddeltainfo(revlog, deltainfo, r'
655 LIMIT_BASE2TEXT = 500
655 LIMIT_BASE2TEXT = 500
656
656
657
657
658 def _candidategroups(revlog, textlen, p1, p2, cachedelta):
658 def _candidategroups(
659 revlog,
660 textlen,
661 p1,
662 p2,
663 cachedelta,
664 ):
659 """Provides group of revision to be tested as delta base
665 """Provides group of revision to be tested as delta base
660
666
661 This top level function focus on emitting groups with unique and worthwhile
667 This top level function focus on emitting groups with unique and worthwhile
@@ -1169,7 +1175,11 b' class deltacomputer:'
1169 self._write_debug(msg)
1175 self._write_debug(msg)
1170
1176
1171 groups = _candidategroups(
1177 groups = _candidategroups(
1172 self.revlog, revinfo.textlen, p1r, p2r, cachedelta
1178 self.revlog,
1179 revinfo.textlen,
1180 p1r,
1181 p2r,
1182 cachedelta,
1173 )
1183 )
1174 candidaterevs = next(groups)
1184 candidaterevs = next(groups)
1175 while candidaterevs is not None:
1185 while candidaterevs is not None:
General Comments 0
You need to be logged in to leave comments. Login now