Show More
@@ -414,6 +414,7 b' class revbranchcache(object):' | |||||
414 | f.write('\0') |
|
414 | f.write('\0') | |
415 | else: |
|
415 | else: | |
416 | f.close() |
|
416 | f.close() | |
|
417 | repo.ui.debug("%s changed - rewriting it\n" % _rbcnames) | |||
417 | self._rbcnamescount = 0 |
|
418 | self._rbcnamescount = 0 | |
418 | self._rbcrevslen = 0 |
|
419 | self._rbcrevslen = 0 | |
419 | if self._rbcnamescount == 0: |
|
420 | if self._rbcnamescount == 0: | |
@@ -438,6 +439,7 b' class revbranchcache(object):' | |||||
438 | # see issue3543. SEEK_END was added in 2.5 |
|
439 | # see issue3543. SEEK_END was added in 2.5 | |
439 | f.seek(0, 2) #os.SEEK_END |
|
440 | f.seek(0, 2) #os.SEEK_END | |
440 | if f.tell() != start: |
|
441 | if f.tell() != start: | |
|
442 | repo.ui.debug("truncating %s to %s\n" % (_rbcrevs, start)) | |||
441 | f.seek(start) |
|
443 | f.seek(start) | |
442 | f.truncate() |
|
444 | f.truncate() | |
443 | end = self._rbcrevslen * _rbcrecsize |
|
445 | end = self._rbcrevslen * _rbcrecsize |
@@ -550,6 +550,7 b' revision branch cache is created when bu' | |||||
550 | recovery from invalid cache revs file with trailing data |
|
550 | recovery from invalid cache revs file with trailing data | |
551 | $ echo >> .hg/cache/rbc-revs-v1 |
|
551 | $ echo >> .hg/cache/rbc-revs-v1 | |
552 | $ rm -f .hg/cache/branch* && hg head a -T '{rev}\n' --debug |
|
552 | $ rm -f .hg/cache/branch* && hg head a -T '{rev}\n' --debug | |
|
553 | truncating cache/rbc-revs-v1 to 120 | |||
553 | 5 |
|
554 | 5 | |
554 | $ f --size .hg/cache/rbc-revs* |
|
555 | $ f --size .hg/cache/rbc-revs* | |
555 | .hg/cache/rbc-revs-v1: size=120 |
|
556 | .hg/cache/rbc-revs-v1: size=120 | |
@@ -559,6 +560,7 b' recovery from invalid cache file with pa' | |||||
559 | $ f --size .hg/cache/rbc-revs* |
|
560 | $ f --size .hg/cache/rbc-revs* | |
560 | .hg/cache/rbc-revs-v1: size=119 |
|
561 | .hg/cache/rbc-revs-v1: size=119 | |
561 | $ rm -f .hg/cache/branch* && hg head a -T '{rev}\n' --debug |
|
562 | $ rm -f .hg/cache/branch* && hg head a -T '{rev}\n' --debug | |
|
563 | truncating cache/rbc-revs-v1 to 112 | |||
562 | 5 |
|
564 | 5 | |
563 | $ f --size .hg/cache/rbc-revs* |
|
565 | $ f --size .hg/cache/rbc-revs* | |
564 | .hg/cache/rbc-revs-v1: size=120 |
|
566 | .hg/cache/rbc-revs-v1: size=120 | |
@@ -580,6 +582,7 b' recovery from invalid cache file with so' | |||||
580 | $ hg log -r 'branch(.)' -T '{rev} ' |
|
582 | $ hg log -r 'branch(.)' -T '{rev} ' | |
581 | 3 4 8 9 10 11 12 13 (no-eol) |
|
583 | 3 4 8 9 10 11 12 13 (no-eol) | |
582 | $ rm -f .hg/cache/branch* && hg head a -T '{rev}\n' --debug |
|
584 | $ rm -f .hg/cache/branch* && hg head a -T '{rev}\n' --debug | |
|
585 | truncating cache/rbc-revs-v1 to 8 | |||
583 | 5 |
|
586 | 5 | |
584 | $ f --size --hexdump --bytes=16 .hg/cache/rbc-revs* |
|
587 | $ f --size --hexdump --bytes=16 .hg/cache/rbc-revs* | |
585 | .hg/cache/rbc-revs-v1: size=120 |
|
588 | .hg/cache/rbc-revs-v1: size=120 |
@@ -322,5 +322,6 b' Check that the right ancestors is used w' | |||||
322 | files: 1/1 chunks (100.00%) |
|
322 | files: 1/1 chunks (100.00%) | |
323 | added 2 changesets with 2 changes to 1 files |
|
323 | added 2 changesets with 2 changes to 1 files | |
324 | invalid branchheads cache (served): tip differs |
|
324 | invalid branchheads cache (served): tip differs | |
|
325 | truncating cache/rbc-revs-v1 to 72 | |||
325 | rebase completed |
|
326 | rebase completed | |
326 | updating the branch cache |
|
327 | updating the branch cache |
General Comments 0
You need to be logged in to leave comments.
Login now