Show More
@@ -557,8 +557,8 b' def _copyrevlog(tr, destrepo, oldrl, une' | |||
|
557 | 557 | olddata = oldvfs.join(oldrl.datafile) |
|
558 | 558 | newdata = newvfs.join(newrl.datafile) |
|
559 | 559 | |
|
560 |
|
|
|
561 | newvfs.makedirs(newdir) | |
|
560 | with newvfs(newrl.indexfile, 'w'): | |
|
561 | pass # create all the directories | |
|
562 | 562 | |
|
563 | 563 | util.copyfile(oldindex, newindex) |
|
564 | 564 | if oldrl.opener.exists(olddata): |
@@ -381,7 +381,8 b' Upgrading a repository to generaldelta w' | |||
|
381 | 381 | $ cd upgradegd |
|
382 | 382 | $ touch f0 |
|
383 | 383 | $ hg -q commit -A -m initial |
|
384 | $ touch f1 | |
|
384 | $ mkdir FooBarDirectory.d | |
|
385 | $ touch FooBarDirectory.d/f1 | |
|
385 | 386 | $ hg -q commit -A -m 'add f1' |
|
386 | 387 | $ hg -q up -r 0 |
|
387 | 388 | $ touch f2 |
@@ -402,12 +403,12 b' Upgrading a repository to generaldelta w' | |||
|
402 | 403 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
|
403 | 404 | (it is safe to interrupt this process any time before data migration completes) |
|
404 | 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 | 407 | migrating 3 filelogs containing 3 revisions (192 bytes in store; 0 bytes tracked data) |
|
407 | 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 | 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 | 412 | finished migrating 3 changelog revisions; change in size: 0 bytes |
|
412 | 413 | finished migrating 9 total revisions; total change in store size: 0 bytes |
|
413 | 414 | copying phaseroots |
@@ -498,12 +499,12 b' unless --no-backup is passed' | |||
|
498 | 499 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
|
499 | 500 | (it is safe to interrupt this process any time before data migration completes) |
|
500 | 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 | 503 | migrating 3 filelogs containing 3 revisions (192 bytes in store; 0 bytes tracked data) |
|
503 | 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 | 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 | 508 | finished migrating 3 changelog revisions; change in size: 0 bytes |
|
508 | 509 | finished migrating 9 total revisions; total change in store size: 0 bytes |
|
509 | 510 | copying phaseroots |
@@ -535,16 +536,16 b' We can restrict optimization to some rev' | |||
|
535 | 536 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
|
536 | 537 | (it is safe to interrupt this process any time before data migration completes) |
|
537 | 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 | 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 | 542 | blindly copying data/f0.i containing 1 revisions |
|
541 | blindly copying data/f1.i containing 1 revisions | |
|
542 | 543 | blindly copying data/f2.i containing 1 revisions |
|
543 | 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 | 546 | cloning 3 revisions from 00manifest.i |
|
546 | 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 | 549 | blindly copying 00changelog.i containing 3 revisions |
|
549 | 550 | finished migrating 3 changelog revisions; change in size: 0 bytes |
|
550 | 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 | 571 | | summary: add f2 |
|
571 | 572 | | |
|
572 | 573 | | |
|
573 |
| o changeset: 1: |
|
|
574 | | o changeset: 1:2029ce2354e2 | |
|
574 | 575 | |/ user: test |
|
575 | 576 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
576 | 577 | | summary: add f1 |
@@ -606,16 +607,16 b' Check we can select negatively' | |||
|
606 | 607 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
|
607 | 608 | (it is safe to interrupt this process any time before data migration completes) |
|
608 | 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 | 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 | 613 | cloning 1 revisions from data/f0.i |
|
612 | cloning 1 revisions from data/f1.i | |
|
613 | 614 | cloning 1 revisions from data/f2.i |
|
614 | 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 | 617 | blindly copying 00manifest.i containing 3 revisions |
|
617 | 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 | 620 | cloning 3 revisions from 00changelog.i |
|
620 | 621 | finished migrating 3 changelog revisions; change in size: 0 bytes |
|
621 | 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 | 653 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
|
653 | 654 | (it is safe to interrupt this process any time before data migration completes) |
|
654 | 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 | 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 | 659 | blindly copying data/f0.i containing 1 revisions |
|
658 | blindly copying data/f1.i containing 1 revisions | |
|
659 | 660 | blindly copying data/f2.i containing 1 revisions |
|
660 | 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 | 663 | blindly copying 00manifest.i containing 3 revisions |
|
663 | 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 | 666 | cloning 3 revisions from 00changelog.i |
|
666 | 667 | finished migrating 3 changelog revisions; change in size: 0 bytes |
|
667 | 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 | 699 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
|
699 | 700 | (it is safe to interrupt this process any time before data migration completes) |
|
700 | 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 | 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 | 705 | cloning 1 revisions from data/f0.i |
|
704 | cloning 1 revisions from data/f1.i | |
|
705 | 706 | cloning 1 revisions from data/f2.i |
|
706 | 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 | 709 | blindly copying 00manifest.i containing 3 revisions |
|
709 | 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 | 712 | blindly copying 00changelog.i containing 3 revisions |
|
712 | 713 | finished migrating 3 changelog revisions; change in size: 0 bytes |
|
713 | 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 | 750 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
|
750 | 751 | (it is safe to interrupt this process any time before data migration completes) |
|
751 | 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 | 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 | 756 | cloning 1 revisions from data/f0.i |
|
755 | cloning 1 revisions from data/f1.i | |
|
756 | 757 | cloning 1 revisions from data/f2.i |
|
757 | 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 | 760 | cloning 3 revisions from 00manifest.i |
|
760 | 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 | 763 | cloning 3 revisions from 00changelog.i |
|
763 | 764 | finished migrating 3 changelog revisions; change in size: 0 bytes |
|
764 | 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 | 802 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
|
802 | 803 | (it is safe to interrupt this process any time before data migration completes) |
|
803 | 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 | 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 | 808 | cloning 1 revisions from data/f0.i |
|
807 | cloning 1 revisions from data/f1.i | |
|
808 | 809 | cloning 1 revisions from data/f2.i |
|
809 | 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 | 812 | cloning 3 revisions from 00manifest.i |
|
812 | 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 | 815 | cloning 3 revisions from 00changelog.i |
|
815 | 816 | finished migrating 3 changelog revisions; change in size: 0 bytes |
|
816 | 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