##// END OF EJS Templates
revlog: make calls to _isgooddelta() consistent...
Martin von Zweigbergk -
r27250:bff71fe0 default
parent child Browse files
Show More
@@ -1450,11 +1450,12 b' class revlog(object):'
1450 if delta is None and prev not in tested:
1450 if delta is None and prev not in tested:
1451 # other approach failed try against prev to hopefully save us a
1451 # other approach failed try against prev to hopefully save us a
1452 # fulltext.
1452 # fulltext.
1453 delta = builddelta(prev)
1453 candidatedelta = builddelta(prev)
1454 if self._isgooddelta(candidatedelta, textlen):
1455 delta = candidatedelta
1454 if delta is not None:
1456 if delta is not None:
1455 dist, l, data, base, chainbase, chainlen, compresseddeltalen = delta
1457 dist, l, data, base, chainbase, chainlen, compresseddeltalen = delta
1456
1458 else:
1457 if not self._isgooddelta(delta, textlen):
1458 text = buildtext()
1459 text = buildtext()
1459 data = self.compress(text)
1460 data = self.compress(text)
1460 l = len(data[1]) + len(data[0])
1461 l = len(data[1]) + len(data[0])
General Comments 0
You need to be logged in to leave comments. Login now