Show More
@@ -587,7 +587,11 b' def _candidategroups(revlog, textlen, p1' | |||||
587 | deltas_limit = textlen * LIMIT_DELTA2TEXT |
|
587 | deltas_limit = textlen * LIMIT_DELTA2TEXT | |
588 |
|
588 | |||
589 | tested = set([nullrev]) |
|
589 | tested = set([nullrev]) | |
590 |
|
|
590 | candidates = _refinedgroups(revlog, p1, p2, cachedelta) | |
|
591 | while True: | |||
|
592 | temptative = next(candidates) | |||
|
593 | if temptative is None: | |||
|
594 | break | |||
591 | group = [] |
|
595 | group = [] | |
592 | for rev in temptative: |
|
596 | for rev in temptative: | |
593 | # skip over empty delta (no need to include them in a chain) |
|
597 | # skip over empty delta (no need to include them in a chain) | |
@@ -632,6 +636,8 b' def _refinedgroups(revlog, p1, p2, cache' | |||||
632 | good = yield candidates |
|
636 | good = yield candidates | |
633 | if good is not None: |
|
637 | if good is not None: | |
634 | break |
|
638 | break | |
|
639 | # we have found nothing | |||
|
640 | yield None | |||
635 |
|
641 | |||
636 | def _rawgroups(revlog, p1, p2, cachedelta): |
|
642 | def _rawgroups(revlog, p1, p2, cachedelta): | |
637 | """Provides group of revision to be tested as delta base |
|
643 | """Provides group of revision to be tested as delta base |
General Comments 0
You need to be logged in to leave comments.
Login now