Show More
@@ -437,6 +437,16 b' Create deeper repo with tree manifests.' | |||
|
437 | 437 | |
|
438 | 438 | $ hg ci -Aqm 'initial' |
|
439 | 439 | |
|
440 | $ echo >> .A/one.txt | |
|
441 | $ echo >> .A/two.txt | |
|
442 | $ echo >> b/bar/fruits.txt | |
|
443 | $ echo >> b/bar/orange/fly/gnat.py | |
|
444 | $ echo >> b/bar/orange/fly/housefly.txt | |
|
445 | $ echo >> b/foo/apple/bees/flower.py | |
|
446 | $ echo >> c.txt | |
|
447 | $ echo >> d.py | |
|
448 | $ hg ci -Aqm 'second' | |
|
449 | ||
|
440 | 450 | We'll see that visitdir works by removing some treemanifest revlogs and running |
|
441 | 451 | the files command with various parameters. |
|
442 | 452 | |
@@ -468,6 +478,12 b' Test files for a subdirectory.' | |||
|
468 | 478 | b/bar/orange/fly/gnat.py (glob) |
|
469 | 479 | b/bar/orange/fly/housefly.txt (glob) |
|
470 | 480 | b/foo/apple/bees/flower.py (glob) |
|
481 | $ hg diff -r '.^' -r . --stat b | |
|
482 | b/bar/fruits.txt | 1 + | |
|
483 | b/bar/orange/fly/gnat.py | 1 + | |
|
484 | b/bar/orange/fly/housefly.txt | 1 + | |
|
485 | b/foo/apple/bees/flower.py | 1 + | |
|
486 | 4 files changed, 4 insertions(+), 0 deletions(-) | |
|
471 | 487 | $ cp -R .hg/store-copy/. .hg/store |
|
472 | 488 | |
|
473 | 489 | Test files with just includes and excludes. |
@@ -477,6 +493,9 b' Test files with just includes and exclud' | |||
|
477 | 493 | $ rm -r .hg/store/meta/b/foo/apple/bees |
|
478 | 494 | $ hg files -r . -I path:b/bar -X path:b/bar/orange/fly -I path:b/foo -X path:b/foo/apple/bees |
|
479 | 495 | b/bar/fruits.txt (glob) |
|
496 | $ hg diff -r '.^' -r . --stat -I path:b/bar -X path:b/bar/orange/fly -I path:b/foo -X path:b/foo/apple/bees | |
|
497 | b/bar/fruits.txt | 1 + | |
|
498 | 1 files changed, 1 insertions(+), 0 deletions(-) | |
|
480 | 499 | $ cp -R .hg/store-copy/. .hg/store |
|
481 | 500 | |
|
482 | 501 | Test files for a subdirectory, excluding a directory within it. |
@@ -487,6 +506,11 b' Test files for a subdirectory, excluding' | |||
|
487 | 506 | b/bar/fruits.txt (glob) |
|
488 | 507 | b/bar/orange/fly/gnat.py (glob) |
|
489 | 508 | b/bar/orange/fly/housefly.txt (glob) |
|
509 | $ hg diff -r '.^' -r . --stat -X path:b/foo b | |
|
510 | b/bar/fruits.txt | 1 + | |
|
511 | b/bar/orange/fly/gnat.py | 1 + | |
|
512 | b/bar/orange/fly/housefly.txt | 1 + | |
|
513 | 3 files changed, 3 insertions(+), 0 deletions(-) | |
|
490 | 514 | $ cp -R .hg/store-copy/. .hg/store |
|
491 | 515 | |
|
492 | 516 | Test files for a sub directory, including only a directory within it, and |
@@ -497,6 +521,10 b' including an unrelated directory.' | |||
|
497 | 521 | $ hg files -r . -I path:b/bar/orange -I path:a b |
|
498 | 522 | b/bar/orange/fly/gnat.py (glob) |
|
499 | 523 | b/bar/orange/fly/housefly.txt (glob) |
|
524 | $ hg diff -r '.^' -r . --stat -I path:b/bar/orange -I path:a b | |
|
525 | b/bar/orange/fly/gnat.py | 1 + | |
|
526 | b/bar/orange/fly/housefly.txt | 1 + | |
|
527 | 2 files changed, 2 insertions(+), 0 deletions(-) | |
|
500 | 528 | $ cp -R .hg/store-copy/. .hg/store |
|
501 | 529 | |
|
502 | 530 | Test files for a pattern, including a directory, and excluding a directory |
@@ -507,6 +535,9 b' within that.' | |||
|
507 | 535 | $ rm -r .hg/store/meta/b/bar/orange |
|
508 | 536 | $ hg files -r . glob:**.txt -I path:b/bar -X path:b/bar/orange |
|
509 | 537 | b/bar/fruits.txt (glob) |
|
538 | $ hg diff -r '.^' -r . --stat glob:**.txt -I path:b/bar -X path:b/bar/orange | |
|
539 | b/bar/fruits.txt | 1 + | |
|
540 | 1 files changed, 1 insertions(+), 0 deletions(-) | |
|
510 | 541 | $ cp -R .hg/store-copy/. .hg/store |
|
511 | 542 | |
|
512 | 543 | Add some more changes to the deep repo |
@@ -522,7 +553,7 b' Verify works' | |||
|
522 | 553 | checking directory manifests |
|
523 | 554 | crosschecking files in changesets and manifests |
|
524 | 555 | checking files |
|
525 |
8 files, |
|
|
556 | 8 files, 4 changesets, 18 total revisions | |
|
526 | 557 | |
|
527 | 558 | Dirlogs are included in fncache |
|
528 | 559 | $ grep meta/.A/00manifest.i .hg/store/fncache |
@@ -563,8 +594,9 b' Verify reports missing dirlog' | |||
|
563 | 594 | checking directory manifests |
|
564 | 595 | 0: empty or missing b/ |
|
565 | 596 | b/@0: parent-directory manifest refers to unknown revision 67688a370455 |
|
566 |
b/@1: parent-directory manifest refers to unknown revision f |
|
|
567 |
b/@2: parent-directory manifest refers to unknown revision |
|
|
597 | b/@1: parent-directory manifest refers to unknown revision f065da70369e | |
|
598 | b/@2: parent-directory manifest refers to unknown revision ac0d30948e0b | |
|
599 | b/@3: parent-directory manifest refers to unknown revision 367152e6af28 | |
|
568 | 600 | warning: orphan revlog 'meta/b/bar/00manifest.i' |
|
569 | 601 | warning: orphan revlog 'meta/b/bar/orange/00manifest.i' |
|
570 | 602 | warning: orphan revlog 'meta/b/bar/orange/fly/00manifest.i' |
@@ -577,9 +609,9 b' Verify reports missing dirlog' | |||
|
577 | 609 | b/bar/orange/fly/housefly.txt@0: in changeset but not in manifest |
|
578 | 610 | b/foo/apple/bees/flower.py@0: in changeset but not in manifest |
|
579 | 611 | checking files |
|
580 |
8 files, |
|
|
612 | 8 files, 4 changesets, 18 total revisions | |
|
581 | 613 | 6 warnings encountered! |
|
582 |
|
|
|
614 | 9 integrity errors encountered! | |
|
583 | 615 | (first damaged changeset appears to be 0) |
|
584 | 616 | [1] |
|
585 | 617 | $ cp -R .hg/store-newcopy/. .hg/store |
@@ -590,22 +622,22 b' Verify reports missing dirlog entry' | |||
|
590 | 622 | checking changesets |
|
591 | 623 | checking manifests |
|
592 | 624 | checking directory manifests |
|
593 |
b/@ |
|
|
594 |
b/@ |
|
|
595 | b/bar/@?: rev 1 points to unexpected changeset 1 | |
|
596 | b/bar/@?: 5e03c4ee5e4a not in parent-directory manifest | |
|
625 | b/@2: parent-directory manifest refers to unknown revision ac0d30948e0b | |
|
626 | b/@3: parent-directory manifest refers to unknown revision 367152e6af28 | |
|
597 | 627 | b/bar/@?: rev 2 points to unexpected changeset 2 |
|
598 |
b/bar/@?: 1 |
|
|
599 |
b/bar/ |
|
|
628 | b/bar/@?: 44d7e1146e0d not in parent-directory manifest | |
|
629 | b/bar/@?: rev 3 points to unexpected changeset 3 | |
|
630 | b/bar/@?: 70b10c6b17b7 not in parent-directory manifest | |
|
631 | b/bar/orange/@?: rev 2 points to unexpected changeset 3 | |
|
600 | 632 | (expected None) |
|
601 |
b/bar/orange/fly/@?: rev |
|
|
633 | b/bar/orange/fly/@?: rev 2 points to unexpected changeset 3 | |
|
602 | 634 | (expected None) |
|
603 | 635 | crosschecking files in changesets and manifests |
|
604 | 636 | checking files |
|
605 |
8 files, |
|
|
637 | 8 files, 4 changesets, 18 total revisions | |
|
606 | 638 | 2 warnings encountered! |
|
607 | 639 | 8 integrity errors encountered! |
|
608 |
(first damaged changeset appears to be |
|
|
640 | (first damaged changeset appears to be 2) | |
|
609 | 641 | [1] |
|
610 | 642 | $ cp -R .hg/store-newcopy/. .hg/store |
|
611 | 643 | |
@@ -621,7 +653,7 b' We can clone even with the knob turned o' | |||
|
621 | 653 | adding changesets |
|
622 | 654 | adding manifests |
|
623 | 655 | adding file changes |
|
624 |
added |
|
|
656 | added 4 changesets with 18 changes to 8 files | |
|
625 | 657 | updating to branch default |
|
626 | 658 | 8 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
627 | 659 | No server errors. |
@@ -656,7 +688,7 b' Verify passes.' | |||
|
656 | 688 | checking directory manifests |
|
657 | 689 | crosschecking files in changesets and manifests |
|
658 | 690 | checking files |
|
659 |
8 files, |
|
|
691 | 8 files, 4 changesets, 18 total revisions | |
|
660 | 692 | $ cd .. |
|
661 | 693 | |
|
662 | 694 | Create clones using old repo formats to use in later tests |
@@ -667,7 +699,7 b' Create clones using old repo formats to ' | |||
|
667 | 699 | adding changesets |
|
668 | 700 | adding manifests |
|
669 | 701 | adding file changes |
|
670 |
added |
|
|
702 | added 4 changesets with 18 changes to 8 files | |
|
671 | 703 | updating to branch default |
|
672 | 704 | 8 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
673 | 705 | $ cd deeprepo-basicstore |
@@ -683,7 +715,7 b' Create clones using old repo formats to ' | |||
|
683 | 715 | adding changesets |
|
684 | 716 | adding manifests |
|
685 | 717 | adding file changes |
|
686 |
added |
|
|
718 | added 4 changesets with 18 changes to 8 files | |
|
687 | 719 | updating to branch default |
|
688 | 720 | 8 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
689 | 721 | $ cd deeprepo-encodedstore |
@@ -701,7 +733,7 b' Local clone with basicstore' | |||
|
701 | 733 | checking directory manifests |
|
702 | 734 | crosschecking files in changesets and manifests |
|
703 | 735 | checking files |
|
704 |
8 files, |
|
|
736 | 8 files, 4 changesets, 18 total revisions | |
|
705 | 737 | |
|
706 | 738 | Local clone with encodedstore |
|
707 | 739 | $ hg clone -U deeprepo-encodedstore local-clone-encodedstore |
@@ -711,7 +743,7 b' Local clone with encodedstore' | |||
|
711 | 743 | checking directory manifests |
|
712 | 744 | crosschecking files in changesets and manifests |
|
713 | 745 | checking files |
|
714 |
8 files, |
|
|
746 | 8 files, 4 changesets, 18 total revisions | |
|
715 | 747 | |
|
716 | 748 | Local clone with fncachestore |
|
717 | 749 | $ hg clone -U deeprepo local-clone-fncachestore |
@@ -721,7 +753,7 b' Local clone with fncachestore' | |||
|
721 | 753 | checking directory manifests |
|
722 | 754 | crosschecking files in changesets and manifests |
|
723 | 755 | checking files |
|
724 |
8 files, |
|
|
756 | 8 files, 4 changesets, 18 total revisions | |
|
725 | 757 | |
|
726 | 758 | Stream clone with basicstore |
|
727 | 759 | $ hg clone --config experimental.changegroup3=True --uncompressed -U \ |
@@ -737,7 +769,7 b' Stream clone with basicstore' | |||
|
737 | 769 | checking directory manifests |
|
738 | 770 | crosschecking files in changesets and manifests |
|
739 | 771 | checking files |
|
740 |
8 files, |
|
|
772 | 8 files, 4 changesets, 18 total revisions | |
|
741 | 773 | |
|
742 | 774 | Stream clone with encodedstore |
|
743 | 775 | $ hg clone --config experimental.changegroup3=True --uncompressed -U \ |
@@ -753,7 +785,7 b' Stream clone with encodedstore' | |||
|
753 | 785 | checking directory manifests |
|
754 | 786 | crosschecking files in changesets and manifests |
|
755 | 787 | checking files |
|
756 |
8 files, |
|
|
788 | 8 files, 4 changesets, 18 total revisions | |
|
757 | 789 | |
|
758 | 790 | Stream clone with fncachestore |
|
759 | 791 | $ hg clone --config experimental.changegroup3=True --uncompressed -U \ |
@@ -769,11 +801,11 b' Stream clone with fncachestore' | |||
|
769 | 801 | checking directory manifests |
|
770 | 802 | crosschecking files in changesets and manifests |
|
771 | 803 | checking files |
|
772 |
8 files, |
|
|
804 | 8 files, 4 changesets, 18 total revisions | |
|
773 | 805 | |
|
774 | 806 | Packed bundle |
|
775 | 807 | $ hg -R deeprepo debugcreatestreamclonebundle repo-packed.hg |
|
776 |
writing |
|
|
808 | writing 5330 bytes for 18 files | |
|
777 | 809 | bundle requirements: generaldelta, revlogv1, treemanifest |
|
778 | 810 | $ hg debugbundle --spec repo-packed.hg |
|
779 | 811 | none-packed1;requirements%3Dgeneraldelta%2Crevlogv1%2Ctreemanifest |
General Comments 0
You need to be logged in to leave comments.
Login now