Show More
@@ -430,28 +430,20 b' def emitrevisions(' | |||
|
430 | 430 | # There is a delta in storage. We try to use that because it |
|
431 | 431 | # amounts to effectively copying data from storage and is |
|
432 | 432 | # therefore the fastest. |
|
433 |
elif deltaparentrev |
|
|
434 | # If the stored delta works, let us use it ! | |
|
435 | if is_usable_base(deltaparentrev): | |
|
436 | baserev = deltaparentrev | |
|
437 | # No guarantee the receiver has the delta parent. Send delta | |
|
438 | # against last revision (if possible), which in the common case | |
|
439 | # should be similar enough to this revision that the delta is | |
|
440 | # reasonable. | |
|
441 | elif prevrev is not None: | |
|
433 | elif is_usable_base(deltaparentrev): | |
|
434 | baserev = deltaparentrev | |
|
435 | else: | |
|
436 | # No guarantee the receiver has the delta parent, or Storage has a | |
|
437 | # fulltext revision. | |
|
438 | # | |
|
439 | # Send delta against last revision (if possible), which in the | |
|
440 | # common case should be similar enough to this revision that the | |
|
441 | # delta is reasonable. | |
|
442 | if prevrev is not None: | |
|
442 | 443 | baserev = prevrev |
|
443 | 444 | else: |
|
444 | 445 | baserev = nullrev |
|
445 | 446 | |
|
446 | # Storage has a fulltext revision. | |
|
447 | ||
|
448 | # Let's use the previous revision, which is as good a guess as any. | |
|
449 | # There is definitely room to improve this logic. | |
|
450 | elif prevrev is not None: | |
|
451 | baserev = prevrev | |
|
452 | else: | |
|
453 | baserev = nullrev | |
|
454 | ||
|
455 | 447 | # But we can't actually use our chosen delta base for whatever |
|
456 | 448 | # reason. Reset to fulltext. |
|
457 | 449 | if baserev != nullrev and (candeltafn and not candeltafn(baserev, rev)): |
General Comments 0
You need to be logged in to leave comments.
Login now