Show More
@@ -557,8 +557,8 b' def _copyrevlog(tr, destrepo, oldrl, une' | |||||
557 | olddata = oldvfs.join(oldrl.datafile) |
|
557 | olddata = oldvfs.join(oldrl.datafile) | |
558 | newdata = newvfs.join(newrl.datafile) |
|
558 | newdata = newvfs.join(newrl.datafile) | |
559 |
|
559 | |||
560 |
|
|
560 | with newvfs(newrl.indexfile, 'w'): | |
561 | newvfs.makedirs(newdir) |
|
561 | pass # create all the directories | |
562 |
|
562 | |||
563 | util.copyfile(oldindex, newindex) |
|
563 | util.copyfile(oldindex, newindex) | |
564 | if oldrl.opener.exists(olddata): |
|
564 | if oldrl.opener.exists(olddata): |
@@ -381,7 +381,8 b' Upgrading a repository to generaldelta w' | |||||
381 | $ cd upgradegd |
|
381 | $ cd upgradegd | |
382 | $ touch f0 |
|
382 | $ touch f0 | |
383 | $ hg -q commit -A -m initial |
|
383 | $ hg -q commit -A -m initial | |
384 | $ touch f1 |
|
384 | $ mkdir FooBarDirectory.d | |
|
385 | $ touch FooBarDirectory.d/f1 | |||
385 | $ hg -q commit -A -m 'add f1' |
|
386 | $ hg -q commit -A -m 'add f1' | |
386 | $ hg -q up -r 0 |
|
387 | $ hg -q up -r 0 | |
387 | $ touch f2 |
|
388 | $ touch f2 | |
@@ -402,12 +403,12 b' Upgrading a repository to generaldelta w' | |||||
402 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
|
403 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) | |
403 | (it is safe to interrupt this process any time before data migration completes) |
|
404 | (it is safe to interrupt this process any time before data migration completes) | |
404 | migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) |
|
405 | migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) | |
405 |
migrating 9 |
|
406 | migrating 953 bytes in store; 437 bytes tracked data | |
406 | migrating 3 filelogs containing 3 revisions (192 bytes in store; 0 bytes tracked data) |
|
407 | migrating 3 filelogs containing 3 revisions (192 bytes in store; 0 bytes tracked data) | |
407 | finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes |
|
408 | finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes | |
408 |
migrating 1 manifests containing 3 revisions (3 |
|
409 | migrating 1 manifests containing 3 revisions (367 bytes in store; 238 bytes tracked data) | |
409 | finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes |
|
410 | finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes | |
410 |
migrating changelog containing 3 revisions (3 |
|
411 | migrating changelog containing 3 revisions (394 bytes in store; 199 bytes tracked data) | |
411 | finished migrating 3 changelog revisions; change in size: 0 bytes |
|
412 | finished migrating 3 changelog revisions; change in size: 0 bytes | |
412 | finished migrating 9 total revisions; total change in store size: 0 bytes |
|
413 | finished migrating 9 total revisions; total change in store size: 0 bytes | |
413 | copying phaseroots |
|
414 | copying phaseroots | |
@@ -498,12 +499,12 b' unless --no-backup is passed' | |||||
498 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
|
499 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) | |
499 | (it is safe to interrupt this process any time before data migration completes) |
|
500 | (it is safe to interrupt this process any time before data migration completes) | |
500 | migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) |
|
501 | migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) | |
501 |
migrating 9 |
|
502 | migrating 953 bytes in store; 437 bytes tracked data | |
502 | migrating 3 filelogs containing 3 revisions (192 bytes in store; 0 bytes tracked data) |
|
503 | migrating 3 filelogs containing 3 revisions (192 bytes in store; 0 bytes tracked data) | |
503 | finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes |
|
504 | finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes | |
504 |
migrating 1 manifests containing 3 revisions (3 |
|
505 | migrating 1 manifests containing 3 revisions (367 bytes in store; 238 bytes tracked data) | |
505 | finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes |
|
506 | finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes | |
506 |
migrating changelog containing 3 revisions (3 |
|
507 | migrating changelog containing 3 revisions (394 bytes in store; 199 bytes tracked data) | |
507 | finished migrating 3 changelog revisions; change in size: 0 bytes |
|
508 | finished migrating 3 changelog revisions; change in size: 0 bytes | |
508 | finished migrating 9 total revisions; total change in store size: 0 bytes |
|
509 | finished migrating 9 total revisions; total change in store size: 0 bytes | |
509 | copying phaseroots |
|
510 | copying phaseroots | |
@@ -535,16 +536,16 b' We can restrict optimization to some rev' | |||||
535 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
|
536 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) | |
536 | (it is safe to interrupt this process any time before data migration completes) |
|
537 | (it is safe to interrupt this process any time before data migration completes) | |
537 | migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) |
|
538 | migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) | |
538 |
migrating 9 |
|
539 | migrating 953 bytes in store; 437 bytes tracked data | |
539 | migrating 3 filelogs containing 3 revisions (192 bytes in store; 0 bytes tracked data) |
|
540 | migrating 3 filelogs containing 3 revisions (192 bytes in store; 0 bytes tracked data) | |
|
541 | blindly copying data/FooBarDirectory.d/f1.i containing 1 revisions | |||
540 | blindly copying data/f0.i containing 1 revisions |
|
542 | blindly copying data/f0.i containing 1 revisions | |
541 | blindly copying data/f1.i containing 1 revisions |
|
|||
542 | blindly copying data/f2.i containing 1 revisions |
|
543 | blindly copying data/f2.i containing 1 revisions | |
543 | finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes |
|
544 | finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes | |
544 |
migrating 1 manifests containing 3 revisions (3 |
|
545 | migrating 1 manifests containing 3 revisions (367 bytes in store; 238 bytes tracked data) | |
545 | cloning 3 revisions from 00manifest.i |
|
546 | cloning 3 revisions from 00manifest.i | |
546 | finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes |
|
547 | finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes | |
547 |
migrating changelog containing 3 revisions (3 |
|
548 | migrating changelog containing 3 revisions (394 bytes in store; 199 bytes tracked data) | |
548 | blindly copying 00changelog.i containing 3 revisions |
|
549 | blindly copying 00changelog.i containing 3 revisions | |
549 | finished migrating 3 changelog revisions; change in size: 0 bytes |
|
550 | finished migrating 3 changelog revisions; change in size: 0 bytes | |
550 | finished migrating 9 total revisions; total change in store size: 0 bytes |
|
551 | finished migrating 9 total revisions; total change in store size: 0 bytes | |
@@ -570,7 +571,7 b' Check that the repo still works fine' | |||||
570 | | summary: add f2 |
|
571 | | summary: add f2 | |
571 | | |
|
572 | | | |
572 | | |
|
573 | | | |
573 |
| o changeset: 1: |
|
574 | | o changeset: 1:2029ce2354e2 | |
574 | |/ user: test |
|
575 | |/ user: test | |
575 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
576 | | date: Thu Jan 01 00:00:00 1970 +0000 | |
576 | | summary: add f1 |
|
577 | | summary: add f1 | |
@@ -606,16 +607,16 b' Check we can select negatively' | |||||
606 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
|
607 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) | |
607 | (it is safe to interrupt this process any time before data migration completes) |
|
608 | (it is safe to interrupt this process any time before data migration completes) | |
608 | migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) |
|
609 | migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) | |
609 |
migrating 9 |
|
610 | migrating 953 bytes in store; 437 bytes tracked data | |
610 | migrating 3 filelogs containing 3 revisions (192 bytes in store; 0 bytes tracked data) |
|
611 | migrating 3 filelogs containing 3 revisions (192 bytes in store; 0 bytes tracked data) | |
|
612 | cloning 1 revisions from data/FooBarDirectory.d/f1.i | |||
611 | cloning 1 revisions from data/f0.i |
|
613 | cloning 1 revisions from data/f0.i | |
612 | cloning 1 revisions from data/f1.i |
|
|||
613 | cloning 1 revisions from data/f2.i |
|
614 | cloning 1 revisions from data/f2.i | |
614 | finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes |
|
615 | finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes | |
615 |
migrating 1 manifests containing 3 revisions (3 |
|
616 | migrating 1 manifests containing 3 revisions (367 bytes in store; 238 bytes tracked data) | |
616 | blindly copying 00manifest.i containing 3 revisions |
|
617 | blindly copying 00manifest.i containing 3 revisions | |
617 | finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes |
|
618 | finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes | |
618 |
migrating changelog containing 3 revisions (3 |
|
619 | migrating changelog containing 3 revisions (394 bytes in store; 199 bytes tracked data) | |
619 | cloning 3 revisions from 00changelog.i |
|
620 | cloning 3 revisions from 00changelog.i | |
620 | finished migrating 3 changelog revisions; change in size: 0 bytes |
|
621 | finished migrating 3 changelog revisions; change in size: 0 bytes | |
621 | finished migrating 9 total revisions; total change in store size: 0 bytes |
|
622 | finished migrating 9 total revisions; total change in store size: 0 bytes | |
@@ -652,16 +653,16 b' Check that we can select changelog only' | |||||
652 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
|
653 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) | |
653 | (it is safe to interrupt this process any time before data migration completes) |
|
654 | (it is safe to interrupt this process any time before data migration completes) | |
654 | migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) |
|
655 | migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) | |
655 |
migrating 9 |
|
656 | migrating 953 bytes in store; 437 bytes tracked data | |
656 | migrating 3 filelogs containing 3 revisions (192 bytes in store; 0 bytes tracked data) |
|
657 | migrating 3 filelogs containing 3 revisions (192 bytes in store; 0 bytes tracked data) | |
|
658 | blindly copying data/FooBarDirectory.d/f1.i containing 1 revisions | |||
657 | blindly copying data/f0.i containing 1 revisions |
|
659 | blindly copying data/f0.i containing 1 revisions | |
658 | blindly copying data/f1.i containing 1 revisions |
|
|||
659 | blindly copying data/f2.i containing 1 revisions |
|
660 | blindly copying data/f2.i containing 1 revisions | |
660 | finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes |
|
661 | finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes | |
661 |
migrating 1 manifests containing 3 revisions (3 |
|
662 | migrating 1 manifests containing 3 revisions (367 bytes in store; 238 bytes tracked data) | |
662 | blindly copying 00manifest.i containing 3 revisions |
|
663 | blindly copying 00manifest.i containing 3 revisions | |
663 | finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes |
|
664 | finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes | |
664 |
migrating changelog containing 3 revisions (3 |
|
665 | migrating changelog containing 3 revisions (394 bytes in store; 199 bytes tracked data) | |
665 | cloning 3 revisions from 00changelog.i |
|
666 | cloning 3 revisions from 00changelog.i | |
666 | finished migrating 3 changelog revisions; change in size: 0 bytes |
|
667 | finished migrating 3 changelog revisions; change in size: 0 bytes | |
667 | finished migrating 9 total revisions; total change in store size: 0 bytes |
|
668 | finished migrating 9 total revisions; total change in store size: 0 bytes | |
@@ -698,16 +699,16 b' Check that we can select filelog only' | |||||
698 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
|
699 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) | |
699 | (it is safe to interrupt this process any time before data migration completes) |
|
700 | (it is safe to interrupt this process any time before data migration completes) | |
700 | migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) |
|
701 | migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) | |
701 |
migrating 9 |
|
702 | migrating 953 bytes in store; 437 bytes tracked data | |
702 | migrating 3 filelogs containing 3 revisions (192 bytes in store; 0 bytes tracked data) |
|
703 | migrating 3 filelogs containing 3 revisions (192 bytes in store; 0 bytes tracked data) | |
|
704 | cloning 1 revisions from data/FooBarDirectory.d/f1.i | |||
703 | cloning 1 revisions from data/f0.i |
|
705 | cloning 1 revisions from data/f0.i | |
704 | cloning 1 revisions from data/f1.i |
|
|||
705 | cloning 1 revisions from data/f2.i |
|
706 | cloning 1 revisions from data/f2.i | |
706 | finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes |
|
707 | finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes | |
707 |
migrating 1 manifests containing 3 revisions (3 |
|
708 | migrating 1 manifests containing 3 revisions (367 bytes in store; 238 bytes tracked data) | |
708 | blindly copying 00manifest.i containing 3 revisions |
|
709 | blindly copying 00manifest.i containing 3 revisions | |
709 | finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes |
|
710 | finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes | |
710 |
migrating changelog containing 3 revisions (3 |
|
711 | migrating changelog containing 3 revisions (394 bytes in store; 199 bytes tracked data) | |
711 | blindly copying 00changelog.i containing 3 revisions |
|
712 | blindly copying 00changelog.i containing 3 revisions | |
712 | finished migrating 3 changelog revisions; change in size: 0 bytes |
|
713 | finished migrating 3 changelog revisions; change in size: 0 bytes | |
713 | finished migrating 9 total revisions; total change in store size: 0 bytes |
|
714 | finished migrating 9 total revisions; total change in store size: 0 bytes | |
@@ -749,16 +750,16 b" Check you can't skip revlog clone during" | |||||
749 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
|
750 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) | |
750 | (it is safe to interrupt this process any time before data migration completes) |
|
751 | (it is safe to interrupt this process any time before data migration completes) | |
751 | migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) |
|
752 | migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) | |
752 |
migrating 9 |
|
753 | migrating 953 bytes in store; 437 bytes tracked data | |
753 | migrating 3 filelogs containing 3 revisions (192 bytes in store; 0 bytes tracked data) |
|
754 | migrating 3 filelogs containing 3 revisions (192 bytes in store; 0 bytes tracked data) | |
|
755 | cloning 1 revisions from data/FooBarDirectory.d/f1.i | |||
754 | cloning 1 revisions from data/f0.i |
|
756 | cloning 1 revisions from data/f0.i | |
755 | cloning 1 revisions from data/f1.i |
|
|||
756 | cloning 1 revisions from data/f2.i |
|
757 | cloning 1 revisions from data/f2.i | |
757 | finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes |
|
758 | finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes | |
758 |
migrating 1 manifests containing 3 revisions (3 |
|
759 | migrating 1 manifests containing 3 revisions (367 bytes in store; 238 bytes tracked data) | |
759 | cloning 3 revisions from 00manifest.i |
|
760 | cloning 3 revisions from 00manifest.i | |
760 | finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes |
|
761 | finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes | |
761 |
migrating changelog containing 3 revisions (3 |
|
762 | migrating changelog containing 3 revisions (394 bytes in store; 199 bytes tracked data) | |
762 | cloning 3 revisions from 00changelog.i |
|
763 | cloning 3 revisions from 00changelog.i | |
763 | finished migrating 3 changelog revisions; change in size: 0 bytes |
|
764 | finished migrating 3 changelog revisions; change in size: 0 bytes | |
764 | finished migrating 9 total revisions; total change in store size: 0 bytes |
|
765 | finished migrating 9 total revisions; total change in store size: 0 bytes | |
@@ -801,16 +802,16 b" Check you can't skip revlog clone during" | |||||
801 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
|
802 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) | |
802 | (it is safe to interrupt this process any time before data migration completes) |
|
803 | (it is safe to interrupt this process any time before data migration completes) | |
803 | migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) |
|
804 | migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) | |
804 |
migrating 9 |
|
805 | migrating 953 bytes in store; 437 bytes tracked data | |
805 | migrating 3 filelogs containing 3 revisions (192 bytes in store; 0 bytes tracked data) |
|
806 | migrating 3 filelogs containing 3 revisions (192 bytes in store; 0 bytes tracked data) | |
|
807 | cloning 1 revisions from data/FooBarDirectory.d/f1.i | |||
806 | cloning 1 revisions from data/f0.i |
|
808 | cloning 1 revisions from data/f0.i | |
807 | cloning 1 revisions from data/f1.i |
|
|||
808 | cloning 1 revisions from data/f2.i |
|
809 | cloning 1 revisions from data/f2.i | |
809 | finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes |
|
810 | finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes | |
810 |
migrating 1 manifests containing 3 revisions (3 |
|
811 | migrating 1 manifests containing 3 revisions (367 bytes in store; 238 bytes tracked data) | |
811 | cloning 3 revisions from 00manifest.i |
|
812 | cloning 3 revisions from 00manifest.i | |
812 | finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes |
|
813 | finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes | |
813 |
migrating changelog containing 3 revisions (3 |
|
814 | migrating changelog containing 3 revisions (394 bytes in store; 199 bytes tracked data) | |
814 | cloning 3 revisions from 00changelog.i |
|
815 | cloning 3 revisions from 00changelog.i | |
815 | finished migrating 3 changelog revisions; change in size: 0 bytes |
|
816 | finished migrating 3 changelog revisions; change in size: 0 bytes | |
816 | finished migrating 9 total revisions; total change in store size: 0 bytes |
|
817 | finished migrating 9 total revisions; total change in store size: 0 bytes |
General Comments 0
You need to be logged in to leave comments.
Login now