Show More
@@ -326,12 +326,19 b' class _deltacomputer(object):' | |||
|
326 | 326 | # exclude already lazy tested base if any |
|
327 | 327 | parents = [p for p in (p1r, p2r) |
|
328 | 328 | if p != nullrev and p not in tested] |
|
329 | if parents and not revlog._aggressivemergedeltas: | |
|
330 | # Pick whichever parent is closer to us (to minimize the | |
|
331 | # chance of having to build a fulltext). | |
|
332 | parents = [max(parents)] | |
|
333 | tested.update(parents) | |
|
334 | yield parents | |
|
329 | ||
|
330 | if not revlog._aggressivemergedeltas and len(parents) == 2: | |
|
331 | parents.sort() | |
|
332 | # To minimize the chance of having to build a fulltext, | |
|
333 | # pick first whichever parent is closest to us (max rev) | |
|
334 | yield (parents[1],) | |
|
335 | # then the other one (min rev) if the first did not fit | |
|
336 | yield (parents[0],) | |
|
337 | tested.update(parents) | |
|
338 | elif len(parents) > 0: | |
|
339 | # Test all parents (1 or 2), and keep the best candidate | |
|
340 | yield parents | |
|
341 | tested.update(parents) | |
|
335 | 342 | |
|
336 | 343 | if prev not in tested: |
|
337 | 344 | # other approach failed try against prev to hopefully save us a |
General Comments 0
You need to be logged in to leave comments.
Login now