Show More
@@ -458,6 +458,8 b' Write the python script to disk' | |||
|
458 | 458 | > # removed: file is missing and marked as untracked |
|
459 | 459 | > 'removed': lambda cc: None, |
|
460 | 460 | > } |
|
461 | > # untracked-X is a version of X where the file is not tracked (? unknown) | |
|
462 | > wccontent['untracked-clean'] = wccontent['clean'] | |
|
461 | 463 | > |
|
462 | 464 | > # build the combination of possible states |
|
463 | 465 | > combination = [] |
@@ -504,22 +506,27 b' check list of planned files' | |||
|
504 | 506 | added_clean |
|
505 | 507 | added_removed |
|
506 | 508 | added_revert |
|
509 | added_untracked-clean | |
|
507 | 510 | added_wc |
|
508 | 511 | clean_clean |
|
509 | 512 | clean_removed |
|
510 | 513 | clean_revert |
|
514 | clean_untracked-clean | |
|
511 | 515 | clean_wc |
|
512 | 516 | missing_clean |
|
513 | 517 | missing_removed |
|
514 | 518 | missing_revert |
|
519 | missing_untracked-clean | |
|
515 | 520 | missing_wc |
|
516 | 521 | modified_clean |
|
517 | 522 | modified_removed |
|
518 | 523 | modified_revert |
|
524 | modified_untracked-clean | |
|
519 | 525 | modified_wc |
|
520 | 526 | removed_clean |
|
521 | 527 | removed_removed |
|
522 | 528 | removed_revert |
|
529 | removed_untracked-clean | |
|
523 | 530 | removed_wc |
|
524 | 531 | |
|
525 | 532 | Script to make a simple text version of the content |
@@ -550,27 +557,33 b' Generate base changeset' | |||
|
550 | 557 | adding clean_clean |
|
551 | 558 | adding clean_removed |
|
552 | 559 | adding clean_revert |
|
560 | adding clean_untracked-clean | |
|
553 | 561 | adding clean_wc |
|
554 | 562 | adding modified_clean |
|
555 | 563 | adding modified_removed |
|
556 | 564 | adding modified_revert |
|
565 | adding modified_untracked-clean | |
|
557 | 566 | adding modified_wc |
|
558 | 567 | adding removed_clean |
|
559 | 568 | adding removed_removed |
|
560 | 569 | adding removed_revert |
|
570 | adding removed_untracked-clean | |
|
561 | 571 | adding removed_wc |
|
562 | 572 | $ hg status |
|
563 | 573 | A clean_clean |
|
564 | 574 | A clean_removed |
|
565 | 575 | A clean_revert |
|
576 | A clean_untracked-clean | |
|
566 | 577 | A clean_wc |
|
567 | 578 | A modified_clean |
|
568 | 579 | A modified_removed |
|
569 | 580 | A modified_revert |
|
581 | A modified_untracked-clean | |
|
570 | 582 | A modified_wc |
|
571 | 583 | A removed_clean |
|
572 | 584 | A removed_removed |
|
573 | 585 | A removed_revert |
|
586 | A removed_untracked-clean | |
|
574 | 587 | A removed_wc |
|
575 | 588 | $ hg commit -m 'base' |
|
576 | 589 | |
@@ -581,14 +594,17 b' Generate base changeset' | |||
|
581 | 594 | base clean_clean |
|
582 | 595 | base clean_removed |
|
583 | 596 | base clean_revert |
|
597 | base clean_untracked-clean | |
|
584 | 598 | base clean_wc |
|
585 | 599 | base modified_clean |
|
586 | 600 | base modified_removed |
|
587 | 601 | base modified_revert |
|
602 | base modified_untracked-clean | |
|
588 | 603 | base modified_wc |
|
589 | 604 | base removed_clean |
|
590 | 605 | base removed_removed |
|
591 | 606 | base removed_revert |
|
607 | base removed_untracked-clean | |
|
592 | 608 | base removed_wc |
|
593 | 609 | |
|
594 | 610 | Create parent changeset |
@@ -598,23 +614,28 b' Create parent changeset' | |||
|
598 | 614 | adding added_clean |
|
599 | 615 | adding added_removed |
|
600 | 616 | adding added_revert |
|
617 | adding added_untracked-clean | |
|
601 | 618 | adding added_wc |
|
602 | 619 | removing removed_clean |
|
603 | 620 | removing removed_removed |
|
604 | 621 | removing removed_revert |
|
622 | removing removed_untracked-clean | |
|
605 | 623 | removing removed_wc |
|
606 | 624 | $ hg status |
|
607 | 625 | M modified_clean |
|
608 | 626 | M modified_removed |
|
609 | 627 | M modified_revert |
|
628 | M modified_untracked-clean | |
|
610 | 629 | M modified_wc |
|
611 | 630 | A added_clean |
|
612 | 631 | A added_removed |
|
613 | 632 | A added_revert |
|
633 | A added_untracked-clean | |
|
614 | 634 | A added_wc |
|
615 | 635 | R removed_clean |
|
616 | 636 | R removed_removed |
|
617 | 637 | R removed_revert |
|
638 | R removed_untracked-clean | |
|
618 | 639 | R removed_wc |
|
619 | 640 | $ hg commit -m 'parent' |
|
620 | 641 | |
@@ -625,14 +646,17 b' Create parent changeset' | |||
|
625 | 646 | parent added_clean |
|
626 | 647 | parent added_removed |
|
627 | 648 | parent added_revert |
|
649 | parent added_untracked-clean | |
|
628 | 650 | parent added_wc |
|
629 | 651 | base clean_clean |
|
630 | 652 | base clean_removed |
|
631 | 653 | base clean_revert |
|
654 | base clean_untracked-clean | |
|
632 | 655 | base clean_wc |
|
633 | 656 | parent modified_clean |
|
634 | 657 | parent modified_removed |
|
635 | 658 | parent modified_revert |
|
659 | parent modified_untracked-clean | |
|
636 | 660 | parent modified_wc |
|
637 | 661 | |
|
638 | 662 | Setup working directory |
@@ -646,6 +670,7 b' Setup working directory' | |||
|
646 | 670 | removing modified_removed |
|
647 | 671 | adding removed_revert |
|
648 | 672 | adding removed_wc |
|
673 | $ hg forget *untracked* | |
|
649 | 674 | $ hg status |
|
650 | 675 | M added_wc |
|
651 | 676 | M clean_wc |
@@ -656,8 +681,11 b' Setup working directory' | |||
|
656 | 681 | A removed_wc |
|
657 | 682 | R added_removed |
|
658 | 683 | R added_revert |
|
684 | R added_untracked-clean | |
|
659 | 685 | R clean_removed |
|
686 | R clean_untracked-clean | |
|
660 | 687 | R modified_removed |
|
688 | R modified_untracked-clean | |
|
661 | 689 | |
|
662 | 690 | $ hg status --rev 'desc("base")' |
|
663 | 691 | M clean_wc |
@@ -668,22 +696,28 b' Setup working directory' | |||
|
668 | 696 | A added_wc |
|
669 | 697 | A missing_wc |
|
670 | 698 | R clean_removed |
|
699 | R clean_untracked-clean | |
|
671 | 700 | R modified_removed |
|
701 | R modified_untracked-clean | |
|
672 | 702 | R removed_clean |
|
673 | 703 | R removed_removed |
|
704 | R removed_untracked-clean | |
|
674 | 705 | |
|
675 | 706 | (create a simple text version of the content) |
|
676 | 707 | |
|
677 | 708 | $ python ../dircontent.py > ../content-wc.txt |
|
678 | 709 | $ cat ../content-wc.txt |
|
679 | 710 | parent added_clean |
|
711 | parent added_untracked-clean | |
|
680 | 712 | wc added_wc |
|
681 | 713 | base clean_clean |
|
682 | 714 | base clean_revert |
|
715 | base clean_untracked-clean | |
|
683 | 716 | wc clean_wc |
|
684 | 717 | wc missing_wc |
|
685 | 718 | parent modified_clean |
|
686 | 719 | base modified_revert |
|
720 | parent modified_untracked-clean | |
|
687 | 721 | wc modified_wc |
|
688 | 722 | base removed_revert |
|
689 | 723 | wc removed_wc |
@@ -703,12 +737,15 b' check revert output' | |||
|
703 | 737 | $ hg revert --all |
|
704 | 738 | undeleting added_removed |
|
705 | 739 | undeleting added_revert |
|
740 | undeleting added_untracked-clean | |
|
706 | 741 | reverting added_wc |
|
707 | 742 | undeleting clean_removed |
|
743 | undeleting clean_untracked-clean | |
|
708 | 744 | reverting clean_wc |
|
709 | 745 | forgetting missing_wc |
|
710 | 746 | undeleting modified_removed |
|
711 | 747 | reverting modified_revert |
|
748 | undeleting modified_untracked-clean | |
|
712 | 749 | reverting modified_wc |
|
713 | 750 | forgetting removed_revert |
|
714 | 751 | forgetting removed_wc |
@@ -750,15 +787,18 b' Misbehavior:' | |||
|
750 | 787 | removing added_clean |
|
751 | 788 | removing added_wc |
|
752 | 789 | undeleting clean_removed |
|
790 | undeleting clean_untracked-clean | |
|
753 | 791 | reverting clean_wc |
|
754 | 792 | forgetting missing_wc |
|
755 | 793 | reverting modified_clean |
|
756 | 794 | undeleting modified_removed |
|
757 | 795 | reverting modified_revert |
|
796 | undeleting modified_untracked-clean | |
|
758 | 797 | reverting modified_wc |
|
759 | 798 | adding removed_clean |
|
760 | 799 | adding removed_removed |
|
761 | 800 | reverting removed_revert |
|
801 | adding removed_untracked-clean | |
|
762 | 802 | reverting removed_wc |
|
763 | 803 | |
|
764 | 804 | Compare resulting directory with revert target. |
@@ -774,8 +814,10 b' Misbehavior:' | |||
|
774 | 814 | $ python ../dircontent.py > ../content-base-all.txt |
|
775 | 815 | $ cd .. |
|
776 | 816 | $ diff -U 0 -- content-base.txt content-base-all.txt | grep _ |
|
817 | +parent added_untracked-clean | |
|
777 | 818 | +wc clean_wc.orig |
|
778 | 819 | +wc missing_wc |
|
820 | +parent modified_untracked-clean.orig | |
|
779 | 821 | +wc modified_wc.orig |
|
780 | 822 | +wc removed_wc.orig |
|
781 | 823 | |
@@ -802,6 +844,8 b' revert all files individually and check ' | |||
|
802 | 844 | |
|
803 | 845 | ### revert for: added_revert |
|
804 | 846 | |
|
847 | ### revert for: added_untracked-clean | |
|
848 | ||
|
805 | 849 | ### revert for: added_wc |
|
806 | 850 | |
|
807 | 851 | ### revert for: clean_clean |
@@ -812,6 +856,8 b' revert all files individually and check ' | |||
|
812 | 856 | ### revert for: clean_revert |
|
813 | 857 | no changes needed to clean_revert |
|
814 | 858 | |
|
859 | ### revert for: clean_untracked-clean | |
|
860 | ||
|
815 | 861 | ### revert for: clean_wc |
|
816 | 862 | |
|
817 | 863 | ### revert for: missing_clean |
@@ -823,6 +869,9 b' revert all files individually and check ' | |||
|
823 | 869 | ### revert for: missing_revert |
|
824 | 870 | missing_revert: no such file in rev * (glob) |
|
825 | 871 | |
|
872 | ### revert for: missing_untracked-clean | |
|
873 | missing_untracked-clean: no such file in rev * (glob) | |
|
874 | ||
|
826 | 875 | ### revert for: missing_wc |
|
827 | 876 | |
|
828 | 877 | ### revert for: modified_clean |
@@ -832,6 +881,8 b' revert all files individually and check ' | |||
|
832 | 881 | |
|
833 | 882 | ### revert for: modified_revert |
|
834 | 883 | |
|
884 | ### revert for: modified_untracked-clean | |
|
885 | ||
|
835 | 886 | ### revert for: modified_wc |
|
836 | 887 | |
|
837 | 888 | ### revert for: removed_clean |
@@ -842,6 +893,9 b' revert all files individually and check ' | |||
|
842 | 893 | |
|
843 | 894 | ### revert for: removed_revert |
|
844 | 895 | |
|
896 | ### revert for: removed_untracked-clean | |
|
897 | removed_untracked-clean: no such file in rev * (glob) | |
|
898 | ||
|
845 | 899 | ### revert for: removed_wc |
|
846 | 900 | |
|
847 | 901 | |
@@ -874,6 +928,7 b' Misbehavior:' | |||
|
874 | 928 | | - modified_revert |
|
875 | 929 | | - removed_revert |
|
876 | 930 | | - added_removed |
|
931 | | - added_untracked-clean | |
|
877 | 932 | |
|
878 | 933 | $ for file in `python ../gen-revert-cases.py filelist`; do |
|
879 | 934 | > echo '### revert for:' $file; |
@@ -886,6 +941,8 b' Misbehavior:' | |||
|
886 | 941 | |
|
887 | 942 | ### revert for: added_revert |
|
888 | 943 | |
|
944 | ### revert for: added_untracked-clean | |
|
945 | ||
|
889 | 946 | ### revert for: added_wc |
|
890 | 947 | |
|
891 | 948 | ### revert for: clean_clean |
@@ -894,6 +951,8 b' Misbehavior:' | |||
|
894 | 951 | |
|
895 | 952 | ### revert for: clean_revert |
|
896 | 953 | |
|
954 | ### revert for: clean_untracked-clean | |
|
955 | ||
|
897 | 956 | ### revert for: clean_wc |
|
898 | 957 | |
|
899 | 958 | ### revert for: missing_clean |
@@ -905,6 +964,9 b' Misbehavior:' | |||
|
905 | 964 | ### revert for: missing_revert |
|
906 | 965 | missing_revert: no such file in rev * (glob) |
|
907 | 966 | |
|
967 | ### revert for: missing_untracked-clean | |
|
968 | missing_untracked-clean: no such file in rev * (glob) | |
|
969 | ||
|
908 | 970 | ### revert for: missing_wc |
|
909 | 971 | |
|
910 | 972 | ### revert for: modified_clean |
@@ -913,6 +975,8 b' Misbehavior:' | |||
|
913 | 975 | |
|
914 | 976 | ### revert for: modified_revert |
|
915 | 977 | |
|
978 | ### revert for: modified_untracked-clean | |
|
979 | ||
|
916 | 980 | ### revert for: modified_wc |
|
917 | 981 | |
|
918 | 982 | ### revert for: removed_clean |
@@ -921,6 +985,8 b' Misbehavior:' | |||
|
921 | 985 | |
|
922 | 986 | ### revert for: removed_revert |
|
923 | 987 | |
|
988 | ### revert for: removed_untracked-clean | |
|
989 | ||
|
924 | 990 | ### revert for: removed_wc |
|
925 | 991 | |
|
926 | 992 |
General Comments 0
You need to be logged in to leave comments.
Login now