##// END OF EJS Templates
revlog: filter out "invalid" delta base candidates...
Boris Feld -
r39122:f90b333e default
parent child Browse files
Show More
@@ -750,7 +750,11 b' class _deltacomputer(object):'
750 deltaparent = self.revlog.deltaparent
750 deltaparent = self.revlog.deltaparent
751
751
752 deltainfo = None
752 deltainfo = None
753 deltas_limit = revinfo.textlen * LIMIT_DELTA2TEXT
753 for candidaterevs in self._getcandidaterevs(p1, p2, cachedelta):
754 for candidaterevs in self._getcandidaterevs(p1, p2, cachedelta):
755 # filter out delta base that will never produce good delta
756 candidaterevs = [r for r in candidaterevs
757 if self.revlog.length(r) <= deltas_limit]
754 nominateddeltas = []
758 nominateddeltas = []
755 for candidaterev in candidaterevs:
759 for candidaterev in candidaterevs:
756 # skip over empty delta (no need to include them in a chain)
760 # skip over empty delta (no need to include them in a chain)
General Comments 0
You need to be logged in to leave comments. Login now