516 finalizing requirements file and making repository readable again |
516 finalizing requirements file and making repository readable again |
517 removing old repository content$TESTTMP/upgradegd/.hg/upgradebackup.* (glob) |
517 removing old repository content$TESTTMP/upgradegd/.hg/upgradebackup.* (glob) |
518 removing temporary repository $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
518 removing temporary repository $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
519 $ ls -1 .hg/ | grep upgradebackup |
519 $ ls -1 .hg/ | grep upgradebackup |
520 [1] |
520 [1] |
|
521 |
|
522 We can restrict optimization to some revlog: |
|
523 |
|
524 $ hg debugupgrade --optimize re-delta-parent --run --manifest --no-backup --debug --traceback |
|
525 upgrade will perform the following actions: |
|
526 |
|
527 requirements |
|
528 preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store |
|
529 |
|
530 re-delta-parent |
|
531 deltas within internal storage will choose a new base revision if needed |
|
532 |
|
533 beginning upgrade... |
|
534 repository locked and read-only |
|
535 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 migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) |
|
538 migrating 917 bytes in store; 401 bytes tracked data |
|
539 migrating 3 filelogs containing 3 revisions (192 bytes in store; 0 bytes tracked data) |
|
540 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 finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes |
|
544 migrating 1 manifests containing 3 revisions (349 bytes in store; 220 bytes tracked data) |
|
545 cloning 3 revisions from 00manifest.i |
|
546 finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes |
|
547 migrating changelog containing 3 revisions (376 bytes in store; 181 bytes tracked data) |
|
548 blindly copying 00changelog.i containing 3 revisions |
|
549 finished migrating 3 changelog revisions; change in size: 0 bytes |
|
550 finished migrating 9 total revisions; total change in store size: 0 bytes |
|
551 copying phaseroots |
|
552 data fully migrated to temporary repository |
|
553 marking source repository as being upgraded; clients will be unable to read from repository |
|
554 starting in-place swap of repository data |
|
555 replaced files will be backed up at $TESTTMP/upgradegd/.hg/upgradebackup.* (glob) |
|
556 replacing store... |
|
557 store replacement complete; repository was inconsistent for *s (glob) |
|
558 finalizing requirements file and making repository readable again |
|
559 removing old repository content$TESTTMP/upgradegd/.hg/upgradebackup.* (glob) |
|
560 removing temporary repository $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
|
561 |
|
562 Check that the repo still works fine |
|
563 |
|
564 $ hg log -G --patch |
|
565 @ changeset: 2:b5a3b78015e5 |
|
566 | tag: tip |
|
567 | parent: 0:ba592bf28da2 |
|
568 | user: test |
|
569 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
570 | summary: add f2 |
|
571 | |
|
572 | |
|
573 | o changeset: 1:da8c0fc4833c |
|
574 |/ user: test |
|
575 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
576 | summary: add f1 |
|
577 | |
|
578 | |
|
579 o changeset: 0:ba592bf28da2 |
|
580 user: test |
|
581 date: Thu Jan 01 00:00:00 1970 +0000 |
|
582 summary: initial |
|
583 |
|
584 |
|
585 |
|
586 $ hg verify |
|
587 checking changesets |
|
588 checking manifests |
|
589 crosschecking files in changesets and manifests |
|
590 checking files |
|
591 checked 3 changesets with 3 changes to 3 files |
|
592 |
|
593 Check we can select negatively |
|
594 |
|
595 $ hg debugupgrade --optimize re-delta-parent --run --no-manifest --no-backup --debug --traceback |
|
596 upgrade will perform the following actions: |
|
597 |
|
598 requirements |
|
599 preserved: dotencode, fncache, generaldelta, revlogv1, sparserevlog, store |
|
600 |
|
601 re-delta-parent |
|
602 deltas within internal storage will choose a new base revision if needed |
|
603 |
|
604 beginning upgrade... |
|
605 repository locked and read-only |
|
606 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 migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) |
|
609 migrating 917 bytes in store; 401 bytes tracked data |
|
610 migrating 3 filelogs containing 3 revisions (192 bytes in store; 0 bytes tracked data) |
|
611 cloning 1 revisions from data/f0.i |
|
612 cloning 1 revisions from data/f1.i |
|
613 cloning 1 revisions from data/f2.i |
|
614 finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes |
|
615 migrating 1 manifests containing 3 revisions (349 bytes in store; 220 bytes tracked data) |
|
616 blindly copying 00manifest.i containing 3 revisions |
|
617 finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes |
|
618 migrating changelog containing 3 revisions (376 bytes in store; 181 bytes tracked data) |
|
619 cloning 3 revisions from 00changelog.i |
|
620 finished migrating 3 changelog revisions; change in size: 0 bytes |
|
621 finished migrating 9 total revisions; total change in store size: 0 bytes |
|
622 copying phaseroots |
|
623 data fully migrated to temporary repository |
|
624 marking source repository as being upgraded; clients will be unable to read from repository |
|
625 starting in-place swap of repository data |
|
626 replaced files will be backed up at $TESTTMP/upgradegd/.hg/upgradebackup.* (glob) |
|
627 replacing store... |
|
628 store replacement complete; repository was inconsistent for *s (glob) |
|
629 finalizing requirements file and making repository readable again |
|
630 removing old repository content$TESTTMP/upgradegd/.hg/upgradebackup.* (glob) |
|
631 removing temporary repository $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
|
632 $ hg verify |
|
633 checking changesets |
|
634 checking manifests |
|
635 crosschecking files in changesets and manifests |
|
636 checking files |
|
637 checked 3 changesets with 3 changes to 3 files |
|
638 |
521 $ cd .. |
639 $ cd .. |
522 |
|
523 |
640 |
524 store files with special filenames aren't encoded during copy |
641 store files with special filenames aren't encoded during copy |
525 |
642 |
526 $ hg init store-filenames |
643 $ hg init store-filenames |
527 $ cd store-filenames |
644 $ cd store-filenames |