Show More
@@ -385,9 +385,22 b' Upgrading a repository to generaldelta w' | |||
|
385 | 385 | $ touch FooBarDirectory.d/f1 |
|
386 | 386 | $ hg -q commit -A -m 'add f1' |
|
387 | 387 | $ hg -q up -r 0 |
|
388 | $ touch f2 | |
|
388 | >>> from __future__ import absolute_import, print_function | |
|
389 | >>> import random | |
|
390 | >>> random.seed(0) # have a reproducible content | |
|
391 | >>> with open("f2", "w") as f: | |
|
392 | ... for i in range(100000): | |
|
393 | ... f.write("%d\n" % random.randint(1000000000, 9999999999)) | |
|
389 | 394 | $ hg -q commit -A -m 'add f2' |
|
390 | 395 | |
|
396 | make sure we have a .d file | |
|
397 | ||
|
398 | $ ls -d .hg/store/data/* | |
|
399 | .hg/store/data/_foo_bar_directory.d.hg | |
|
400 | .hg/store/data/f0.i | |
|
401 | .hg/store/data/f2.d | |
|
402 | .hg/store/data/f2.i | |
|
403 | ||
|
391 | 404 | $ hg debugupgraderepo --run --config format.sparse-revlog=false |
|
392 | 405 | upgrade will perform the following actions: |
|
393 | 406 |
|
@@ -403,14 +416,14 b' Upgrading a repository to generaldelta w' | |||
|
403 | 416 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
|
404 | 417 | (it is safe to interrupt this process any time before data migration completes) |
|
405 | 418 | migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) |
|
406 |
migrating |
|
|
407 |
migrating 3 filelogs containing 3 revisions ( |
|
|
419 | migrating 519 KB in store; 1.05 MB tracked data | |
|
420 | migrating 3 filelogs containing 3 revisions (518 KB in store; 1.05 MB tracked data) | |
|
408 | 421 | finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes |
|
409 |
migrating 1 manifests containing 3 revisions (3 |
|
|
410 |
finished migrating 3 manifest revisions across 1 manifests; change in size: |
|
|
422 | migrating 1 manifests containing 3 revisions (384 bytes in store; 238 bytes tracked data) | |
|
423 | finished migrating 3 manifest revisions across 1 manifests; change in size: -17 bytes | |
|
411 | 424 | migrating changelog containing 3 revisions (394 bytes in store; 199 bytes tracked data) |
|
412 | 425 | finished migrating 3 changelog revisions; change in size: 0 bytes |
|
413 |
finished migrating 9 total revisions; total change in store size: |
|
|
426 | finished migrating 9 total revisions; total change in store size: -17 bytes | |
|
414 | 427 | copying phaseroots |
|
415 | 428 | data fully migrated to temporary repository |
|
416 | 429 | marking source repository as being upgraded; clients will be unable to read from repository |
@@ -499,8 +512,8 b' unless --no-backup is passed' | |||
|
499 | 512 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
|
500 | 513 | (it is safe to interrupt this process any time before data migration completes) |
|
501 | 514 | migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) |
|
502 |
migrating |
|
|
503 |
migrating 3 filelogs containing 3 revisions ( |
|
|
515 | migrating 519 KB in store; 1.05 MB tracked data | |
|
516 | migrating 3 filelogs containing 3 revisions (518 KB in store; 1.05 MB tracked data) | |
|
504 | 517 | finished migrating 3 filelog revisions across 3 filelogs; change in size: 0 bytes |
|
505 | 518 | migrating 1 manifests containing 3 revisions (367 bytes in store; 238 bytes tracked data) |
|
506 | 519 | finished migrating 3 manifest revisions across 1 manifests; change in size: 0 bytes |
@@ -536,8 +549,8 b' We can restrict optimization to some rev' | |||
|
536 | 549 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
|
537 | 550 | (it is safe to interrupt this process any time before data migration completes) |
|
538 | 551 | migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) |
|
539 |
migrating |
|
|
540 |
migrating 3 filelogs containing 3 revisions ( |
|
|
552 | migrating 519 KB in store; 1.05 MB tracked data | |
|
553 | migrating 3 filelogs containing 3 revisions (518 KB in store; 1.05 MB tracked data) | |
|
541 | 554 | blindly copying data/FooBarDirectory.d/f1.i containing 1 revisions |
|
542 | 555 | blindly copying data/f0.i containing 1 revisions |
|
543 | 556 | blindly copying data/f2.i containing 1 revisions |
@@ -562,14 +575,16 b' We can restrict optimization to some rev' | |||
|
562 | 575 | |
|
563 | 576 | Check that the repo still works fine |
|
564 | 577 | |
|
565 |
$ hg log -G -- |
|
|
566 |
@ changeset: 2: |
|
|
578 | $ hg log -G --stat | |
|
579 | @ changeset: 2:76d4395f5413 | |
|
567 | 580 | | tag: tip |
|
568 | 581 | | parent: 0:ba592bf28da2 |
|
569 | 582 | | user: test |
|
570 | 583 | | date: Thu Jan 01 00:00:00 1970 +0000 |
|
571 | 584 | | summary: add f2 |
|
572 | 585 | | |
|
586 | | f2 | 100000 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | |
|
587 | | 1 files changed, 100000 insertions(+), 0 deletions(-) | |
|
573 | 588 | | |
|
574 | 589 | | o changeset: 1:2029ce2354e2 |
|
575 | 590 | |/ user: test |
@@ -589,7 +604,10 b' Check that the repo still works fine' | |||
|
589 | 604 | checking manifests |
|
590 | 605 | crosschecking files in changesets and manifests |
|
591 | 606 | checking files |
|
607 | warning: revlog 'data/f2.d' not in fncache! | |
|
592 | 608 | checked 3 changesets with 3 changes to 3 files |
|
609 | 1 warnings encountered! | |
|
610 | hint: run "hg debugrebuildfncache" to recover from corrupt fncache | |
|
593 | 611 | |
|
594 | 612 | Check we can select negatively |
|
595 | 613 | |
@@ -607,8 +625,8 b' Check we can select negatively' | |||
|
607 | 625 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
|
608 | 626 | (it is safe to interrupt this process any time before data migration completes) |
|
609 | 627 | migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) |
|
610 |
migrating |
|
|
611 |
migrating 3 filelogs containing 3 revisions ( |
|
|
628 | migrating 519 KB in store; 1.05 MB tracked data | |
|
629 | migrating 3 filelogs containing 3 revisions (518 KB in store; 1.05 MB tracked data) | |
|
612 | 630 | cloning 1 revisions from data/FooBarDirectory.d/f1.i |
|
613 | 631 | cloning 1 revisions from data/f0.i |
|
614 | 632 | cloning 1 revisions from data/f2.i |
@@ -653,8 +671,8 b' Check that we can select changelog only' | |||
|
653 | 671 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
|
654 | 672 | (it is safe to interrupt this process any time before data migration completes) |
|
655 | 673 | migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) |
|
656 |
migrating |
|
|
657 |
migrating 3 filelogs containing 3 revisions ( |
|
|
674 | migrating 519 KB in store; 1.05 MB tracked data | |
|
675 | migrating 3 filelogs containing 3 revisions (518 KB in store; 1.05 MB tracked data) | |
|
658 | 676 | blindly copying data/FooBarDirectory.d/f1.i containing 1 revisions |
|
659 | 677 | blindly copying data/f0.i containing 1 revisions |
|
660 | 678 | blindly copying data/f2.i containing 1 revisions |
@@ -681,7 +699,10 b' Check that we can select changelog only' | |||
|
681 | 699 | checking manifests |
|
682 | 700 | crosschecking files in changesets and manifests |
|
683 | 701 | checking files |
|
702 | warning: revlog 'data/f2.d' not in fncache! | |
|
684 | 703 | checked 3 changesets with 3 changes to 3 files |
|
704 | 1 warnings encountered! | |
|
705 | hint: run "hg debugrebuildfncache" to recover from corrupt fncache | |
|
685 | 706 | |
|
686 | 707 | Check that we can select filelog only |
|
687 | 708 | |
@@ -699,8 +720,8 b' Check that we can select filelog only' | |||
|
699 | 720 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
|
700 | 721 | (it is safe to interrupt this process any time before data migration completes) |
|
701 | 722 | migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) |
|
702 |
migrating |
|
|
703 |
migrating 3 filelogs containing 3 revisions ( |
|
|
723 | migrating 519 KB in store; 1.05 MB tracked data | |
|
724 | migrating 3 filelogs containing 3 revisions (518 KB in store; 1.05 MB tracked data) | |
|
704 | 725 | cloning 1 revisions from data/FooBarDirectory.d/f1.i |
|
705 | 726 | cloning 1 revisions from data/f0.i |
|
706 | 727 | cloning 1 revisions from data/f2.i |
@@ -750,8 +771,8 b" Check you can't skip revlog clone during" | |||
|
750 | 771 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
|
751 | 772 | (it is safe to interrupt this process any time before data migration completes) |
|
752 | 773 | migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) |
|
753 |
migrating |
|
|
754 |
migrating 3 filelogs containing 3 revisions ( |
|
|
774 | migrating 519 KB in store; 1.05 MB tracked data | |
|
775 | migrating 3 filelogs containing 3 revisions (518 KB in store; 1.05 MB tracked data) | |
|
755 | 776 | cloning 1 revisions from data/FooBarDirectory.d/f1.i |
|
756 | 777 | cloning 1 revisions from data/f0.i |
|
757 | 778 | cloning 1 revisions from data/f2.i |
@@ -802,8 +823,8 b" Check you can't skip revlog clone during" | |||
|
802 | 823 | creating temporary repository to stage migrated data: $TESTTMP/upgradegd/.hg/upgrade.* (glob) |
|
803 | 824 | (it is safe to interrupt this process any time before data migration completes) |
|
804 | 825 | migrating 9 total revisions (3 in filelogs, 3 in manifests, 3 in changelog) |
|
805 |
migrating |
|
|
806 |
migrating 3 filelogs containing 3 revisions ( |
|
|
826 | migrating 519 KB in store; 1.05 MB tracked data | |
|
827 | migrating 3 filelogs containing 3 revisions (518 KB in store; 1.05 MB tracked data) | |
|
807 | 828 | cloning 1 revisions from data/FooBarDirectory.d/f1.i |
|
808 | 829 | cloning 1 revisions from data/f0.i |
|
809 | 830 | cloning 1 revisions from data/f2.i |
General Comments 0
You need to be logged in to leave comments.
Login now