Show More
@@ -743,10 +743,20 b' class _deltacomputer(object):' | |||
|
743 | 743 | p2 = revinfo.p2 |
|
744 | 744 | revlog = self.revlog |
|
745 | 745 | |
|
746 | deltalength = self.revlog.length | |
|
747 | deltaparent = self.revlog.deltaparent | |
|
748 | ||
|
746 | 749 | deltainfo = None |
|
747 | 750 | for candidaterevs in self._getcandidaterevs(p1, p2, cachedelta): |
|
748 | 751 | nominateddeltas = [] |
|
749 | 752 | for candidaterev in candidaterevs: |
|
753 | # skip over empty delta (no need to include them in a chain) | |
|
754 | while candidaterev != nullrev and not deltalength(candidaterev): | |
|
755 | candidaterev = deltaparent(candidaterev) | |
|
756 | # no need to try a delta against nullid, this will be handled | |
|
757 | # by fulltext later. | |
|
758 | if candidaterev == nullrev: | |
|
759 | continue | |
|
750 | 760 | # no delta for rawtext-changing revs (see "candelta" for why) |
|
751 | 761 | if revlog.flags(candidaterev) & REVIDX_RAWTEXT_CHANGING_FLAGS: |
|
752 | 762 | continue |
@@ -267,7 +267,7 b' test maxdeltachainspan' | |||
|
267 | 267 | 51 4 3 50 prev 356 594 611 1.02862 611 0 0.00000 |
|
268 | 268 | 52 4 4 51 p1 58 640 669 1.04531 669 0 0.00000 |
|
269 | 269 | 53 5 1 -1 base 0 0 0 0.00000 0 0 0.00000 |
|
270 |
54 |
|
|
270 | 54 6 1 -1 base 369 640 369 0.57656 369 0 0.00000 | |
|
271 | 271 | $ hg clone --pull source-repo --config experimental.maxdeltachainspan=2800 relax-chain --config format.generaldelta=yes |
|
272 | 272 | requesting all changes |
|
273 | 273 | adding changesets |
@@ -333,7 +333,7 b' test maxdeltachainspan' | |||
|
333 | 333 | 51 2 13 17 p1 58 594 739 1.24411 2781 2042 2.76319 |
|
334 | 334 | 52 5 1 -1 base 369 640 369 0.57656 369 0 0.00000 |
|
335 | 335 | 53 6 1 -1 base 0 0 0 0.00000 0 0 0.00000 |
|
336 |
54 |
|
|
336 | 54 7 1 -1 base 369 640 369 0.57656 369 0 0.00000 | |
|
337 | 337 | $ hg clone --pull source-repo --config experimental.maxdeltachainspan=0 noconst-chain --config format.generaldelta=yes |
|
338 | 338 | requesting all changes |
|
339 | 339 | adding changesets |
@@ -399,4 +399,4 b' test maxdeltachainspan' | |||
|
399 | 399 | 51 2 13 17 p1 58 594 739 1.24411 2642 1903 2.57510 |
|
400 | 400 | 52 2 14 51 p1 58 640 797 1.24531 2700 1903 2.38770 |
|
401 | 401 | 53 4 1 -1 base 0 0 0 0.00000 0 0 0.00000 |
|
402 |
54 |
|
|
402 | 54 5 1 -1 base 369 640 369 0.57656 369 0 0.00000 |
General Comments 0
You need to be logged in to leave comments.
Login now