##// END OF EJS Templates
snapshot: introduce an intermediate `_refinedgroups` generator...
Boris Feld -
r39532:2f9f7889 default
parent child Browse files
Show More
@@ -585,7 +585,7 b' def _candidategroups(revlog, textlen, p1'
585 deltas_limit = textlen * LIMIT_DELTA2TEXT
585 deltas_limit = textlen * LIMIT_DELTA2TEXT
586
586
587 tested = set([nullrev])
587 tested = set([nullrev])
588 for temptative in _rawgroups(revlog, p1, p2, cachedelta):
588 for temptative in _refinedgroups(revlog, p1, p2, cachedelta):
589 group = []
589 group = []
590 for rev in temptative:
590 for rev in temptative:
591 # skip over empty delta (no need to include them in a chain)
591 # skip over empty delta (no need to include them in a chain)
@@ -621,6 +621,13 b' def _findsnapshots(revlog, cache, start_'
621 if issnapshot(rev):
621 if issnapshot(rev):
622 cache[deltaparent(rev)].append(rev)
622 cache[deltaparent(rev)].append(rev)
623
623
624 def _refinedgroups(revlog, p1, p2, cachedelta):
625 good = None
626 for candidates in _rawgroups(revlog, p1, p2, cachedelta):
627 good = yield candidates
628 if good is not None:
629 break
630
624 def _rawgroups(revlog, p1, p2, cachedelta):
631 def _rawgroups(revlog, p1, p2, cachedelta):
625 """Provides group of revision to be tested as delta base
632 """Provides group of revision to be tested as delta base
626
633
General Comments 0
You need to be logged in to leave comments. Login now