Show More
@@ -1343,11 +1343,14 b' class revlog(object):' | |||||
1343 | # should we try to build a delta? |
|
1343 | # should we try to build a delta? | |
1344 | if prev != nullrev: |
|
1344 | if prev != nullrev: | |
1345 | if self._generaldelta: |
|
1345 | if self._generaldelta: | |
1346 | if p1r >= basecache[1]: |
|
1346 | # Pick whichever parent is closer to us (to minimize the | |
1347 | d = builddelta(p1r) |
|
1347 | # chance of having to build a fulltext). Since | |
1348 | elif p2r >= basecache[1]: |
|
1348 | # nullrev == -1, any non-merge commit will always pick p1r. | |
1349 | d = builddelta(p2r) |
|
1349 | drev = p2r if p2r > p1r else p1r | |
1350 |
|
|
1350 | d = builddelta(drev) | |
|
1351 | # If the chosen delta will result in us making a full text, | |||
|
1352 | # give it one last try against prev. | |||
|
1353 | if drev != prev and not self._isgooddelta(d, textlen): | |||
1351 | d = builddelta(prev) |
|
1354 | d = builddelta(prev) | |
1352 | else: |
|
1355 | else: | |
1353 | d = builddelta(prev) |
|
1356 | d = builddelta(prev) |
General Comments 0
You need to be logged in to leave comments.
Login now