Show More
@@ -460,6 +460,7 b' Write the python script to disk' | |||||
460 | > } |
|
460 | > } | |
461 | > # untracked-X is a version of X where the file is not tracked (? unknown) |
|
461 | > # untracked-X is a version of X where the file is not tracked (? unknown) | |
462 | > wccontent['untracked-clean'] = wccontent['clean'] |
|
462 | > wccontent['untracked-clean'] = wccontent['clean'] | |
|
463 | > wccontent['untracked-revert'] = wccontent['revert'] | |||
463 | > |
|
464 | > | |
464 | > # build the combination of possible states |
|
465 | > # build the combination of possible states | |
465 | > combination = [] |
|
466 | > combination = [] | |
@@ -507,26 +508,31 b' check list of planned files' | |||||
507 | added_removed |
|
508 | added_removed | |
508 | added_revert |
|
509 | added_revert | |
509 | added_untracked-clean |
|
510 | added_untracked-clean | |
|
511 | added_untracked-revert | |||
510 | added_wc |
|
512 | added_wc | |
511 | clean_clean |
|
513 | clean_clean | |
512 | clean_removed |
|
514 | clean_removed | |
513 | clean_revert |
|
515 | clean_revert | |
514 | clean_untracked-clean |
|
516 | clean_untracked-clean | |
|
517 | clean_untracked-revert | |||
515 | clean_wc |
|
518 | clean_wc | |
516 | missing_clean |
|
519 | missing_clean | |
517 | missing_removed |
|
520 | missing_removed | |
518 | missing_revert |
|
521 | missing_revert | |
519 | missing_untracked-clean |
|
522 | missing_untracked-clean | |
|
523 | missing_untracked-revert | |||
520 | missing_wc |
|
524 | missing_wc | |
521 | modified_clean |
|
525 | modified_clean | |
522 | modified_removed |
|
526 | modified_removed | |
523 | modified_revert |
|
527 | modified_revert | |
524 | modified_untracked-clean |
|
528 | modified_untracked-clean | |
|
529 | modified_untracked-revert | |||
525 | modified_wc |
|
530 | modified_wc | |
526 | removed_clean |
|
531 | removed_clean | |
527 | removed_removed |
|
532 | removed_removed | |
528 | removed_revert |
|
533 | removed_revert | |
529 | removed_untracked-clean |
|
534 | removed_untracked-clean | |
|
535 | removed_untracked-revert | |||
530 | removed_wc |
|
536 | removed_wc | |
531 |
|
537 | |||
532 | Script to make a simple text version of the content |
|
538 | Script to make a simple text version of the content | |
@@ -558,32 +564,38 b' Generate base changeset' | |||||
558 | adding clean_removed |
|
564 | adding clean_removed | |
559 | adding clean_revert |
|
565 | adding clean_revert | |
560 | adding clean_untracked-clean |
|
566 | adding clean_untracked-clean | |
|
567 | adding clean_untracked-revert | |||
561 | adding clean_wc |
|
568 | adding clean_wc | |
562 | adding modified_clean |
|
569 | adding modified_clean | |
563 | adding modified_removed |
|
570 | adding modified_removed | |
564 | adding modified_revert |
|
571 | adding modified_revert | |
565 | adding modified_untracked-clean |
|
572 | adding modified_untracked-clean | |
|
573 | adding modified_untracked-revert | |||
566 | adding modified_wc |
|
574 | adding modified_wc | |
567 | adding removed_clean |
|
575 | adding removed_clean | |
568 | adding removed_removed |
|
576 | adding removed_removed | |
569 | adding removed_revert |
|
577 | adding removed_revert | |
570 | adding removed_untracked-clean |
|
578 | adding removed_untracked-clean | |
|
579 | adding removed_untracked-revert | |||
571 | adding removed_wc |
|
580 | adding removed_wc | |
572 | $ hg status |
|
581 | $ hg status | |
573 | A clean_clean |
|
582 | A clean_clean | |
574 | A clean_removed |
|
583 | A clean_removed | |
575 | A clean_revert |
|
584 | A clean_revert | |
576 | A clean_untracked-clean |
|
585 | A clean_untracked-clean | |
|
586 | A clean_untracked-revert | |||
577 | A clean_wc |
|
587 | A clean_wc | |
578 | A modified_clean |
|
588 | A modified_clean | |
579 | A modified_removed |
|
589 | A modified_removed | |
580 | A modified_revert |
|
590 | A modified_revert | |
581 | A modified_untracked-clean |
|
591 | A modified_untracked-clean | |
|
592 | A modified_untracked-revert | |||
582 | A modified_wc |
|
593 | A modified_wc | |
583 | A removed_clean |
|
594 | A removed_clean | |
584 | A removed_removed |
|
595 | A removed_removed | |
585 | A removed_revert |
|
596 | A removed_revert | |
586 | A removed_untracked-clean |
|
597 | A removed_untracked-clean | |
|
598 | A removed_untracked-revert | |||
587 | A removed_wc |
|
599 | A removed_wc | |
588 | $ hg commit -m 'base' |
|
600 | $ hg commit -m 'base' | |
589 |
|
601 | |||
@@ -595,16 +607,19 b' Generate base changeset' | |||||
595 | base clean_removed |
|
607 | base clean_removed | |
596 | base clean_revert |
|
608 | base clean_revert | |
597 | base clean_untracked-clean |
|
609 | base clean_untracked-clean | |
|
610 | base clean_untracked-revert | |||
598 | base clean_wc |
|
611 | base clean_wc | |
599 | base modified_clean |
|
612 | base modified_clean | |
600 | base modified_removed |
|
613 | base modified_removed | |
601 | base modified_revert |
|
614 | base modified_revert | |
602 | base modified_untracked-clean |
|
615 | base modified_untracked-clean | |
|
616 | base modified_untracked-revert | |||
603 | base modified_wc |
|
617 | base modified_wc | |
604 | base removed_clean |
|
618 | base removed_clean | |
605 | base removed_removed |
|
619 | base removed_removed | |
606 | base removed_revert |
|
620 | base removed_revert | |
607 | base removed_untracked-clean |
|
621 | base removed_untracked-clean | |
|
622 | base removed_untracked-revert | |||
608 | base removed_wc |
|
623 | base removed_wc | |
609 |
|
624 | |||
610 | Create parent changeset |
|
625 | Create parent changeset | |
@@ -615,27 +630,32 b' Create parent changeset' | |||||
615 | adding added_removed |
|
630 | adding added_removed | |
616 | adding added_revert |
|
631 | adding added_revert | |
617 | adding added_untracked-clean |
|
632 | adding added_untracked-clean | |
|
633 | adding added_untracked-revert | |||
618 | adding added_wc |
|
634 | adding added_wc | |
619 | removing removed_clean |
|
635 | removing removed_clean | |
620 | removing removed_removed |
|
636 | removing removed_removed | |
621 | removing removed_revert |
|
637 | removing removed_revert | |
622 | removing removed_untracked-clean |
|
638 | removing removed_untracked-clean | |
|
639 | removing removed_untracked-revert | |||
623 | removing removed_wc |
|
640 | removing removed_wc | |
624 | $ hg status |
|
641 | $ hg status | |
625 | M modified_clean |
|
642 | M modified_clean | |
626 | M modified_removed |
|
643 | M modified_removed | |
627 | M modified_revert |
|
644 | M modified_revert | |
628 | M modified_untracked-clean |
|
645 | M modified_untracked-clean | |
|
646 | M modified_untracked-revert | |||
629 | M modified_wc |
|
647 | M modified_wc | |
630 | A added_clean |
|
648 | A added_clean | |
631 | A added_removed |
|
649 | A added_removed | |
632 | A added_revert |
|
650 | A added_revert | |
633 | A added_untracked-clean |
|
651 | A added_untracked-clean | |
|
652 | A added_untracked-revert | |||
634 | A added_wc |
|
653 | A added_wc | |
635 | R removed_clean |
|
654 | R removed_clean | |
636 | R removed_removed |
|
655 | R removed_removed | |
637 | R removed_revert |
|
656 | R removed_revert | |
638 | R removed_untracked-clean |
|
657 | R removed_untracked-clean | |
|
658 | R removed_untracked-revert | |||
639 | R removed_wc |
|
659 | R removed_wc | |
640 | $ hg commit -m 'parent' |
|
660 | $ hg commit -m 'parent' | |
641 |
|
661 | |||
@@ -647,16 +667,19 b' Create parent changeset' | |||||
647 | parent added_removed |
|
667 | parent added_removed | |
648 | parent added_revert |
|
668 | parent added_revert | |
649 | parent added_untracked-clean |
|
669 | parent added_untracked-clean | |
|
670 | parent added_untracked-revert | |||
650 | parent added_wc |
|
671 | parent added_wc | |
651 | base clean_clean |
|
672 | base clean_clean | |
652 | base clean_removed |
|
673 | base clean_removed | |
653 | base clean_revert |
|
674 | base clean_revert | |
654 | base clean_untracked-clean |
|
675 | base clean_untracked-clean | |
|
676 | base clean_untracked-revert | |||
655 | base clean_wc |
|
677 | base clean_wc | |
656 | parent modified_clean |
|
678 | parent modified_clean | |
657 | parent modified_removed |
|
679 | parent modified_removed | |
658 | parent modified_revert |
|
680 | parent modified_revert | |
659 | parent modified_untracked-clean |
|
681 | parent modified_untracked-clean | |
|
682 | parent modified_untracked-revert | |||
660 | parent modified_wc |
|
683 | parent modified_wc | |
661 |
|
684 | |||
662 | Setup working directory |
|
685 | Setup working directory | |
@@ -665,10 +688,12 b' Setup working directory' | |||||
665 | $ hg addremove --similarity 0 |
|
688 | $ hg addremove --similarity 0 | |
666 | removing added_removed |
|
689 | removing added_removed | |
667 | removing added_revert |
|
690 | removing added_revert | |
|
691 | removing added_untracked-revert | |||
668 | removing clean_removed |
|
692 | removing clean_removed | |
669 | adding missing_wc |
|
693 | adding missing_wc | |
670 | removing modified_removed |
|
694 | removing modified_removed | |
671 | adding removed_revert |
|
695 | adding removed_revert | |
|
696 | adding removed_untracked-revert | |||
672 | adding removed_wc |
|
697 | adding removed_wc | |
673 | $ hg forget *untracked* |
|
698 | $ hg forget *untracked* | |
674 | $ hg status |
|
699 | $ hg status | |
@@ -682,10 +707,14 b' Setup working directory' | |||||
682 | R added_removed |
|
707 | R added_removed | |
683 | R added_revert |
|
708 | R added_revert | |
684 | R added_untracked-clean |
|
709 | R added_untracked-clean | |
|
710 | R added_untracked-revert | |||
685 | R clean_removed |
|
711 | R clean_removed | |
686 | R clean_untracked-clean |
|
712 | R clean_untracked-clean | |
|
713 | R clean_untracked-revert | |||
687 | R modified_removed |
|
714 | R modified_removed | |
688 | R modified_untracked-clean |
|
715 | R modified_untracked-clean | |
|
716 | R modified_untracked-revert | |||
|
717 | ? removed_untracked-revert | |||
689 |
|
718 | |||
690 | $ hg status --rev 'desc("base")' |
|
719 | $ hg status --rev 'desc("base")' | |
691 | M clean_wc |
|
720 | M clean_wc | |
@@ -697,11 +726,14 b' Setup working directory' | |||||
697 | A missing_wc |
|
726 | A missing_wc | |
698 | R clean_removed |
|
727 | R clean_removed | |
699 | R clean_untracked-clean |
|
728 | R clean_untracked-clean | |
|
729 | R clean_untracked-revert | |||
700 | R modified_removed |
|
730 | R modified_removed | |
701 | R modified_untracked-clean |
|
731 | R modified_untracked-clean | |
|
732 | R modified_untracked-revert | |||
702 | R removed_clean |
|
733 | R removed_clean | |
703 | R removed_removed |
|
734 | R removed_removed | |
704 | R removed_untracked-clean |
|
735 | R removed_untracked-clean | |
|
736 | R removed_untracked-revert | |||
705 |
|
737 | |||
706 | (create a simple text version of the content) |
|
738 | (create a simple text version of the content) | |
707 |
|
739 | |||
@@ -713,13 +745,16 b' Setup working directory' | |||||
713 | base clean_clean |
|
745 | base clean_clean | |
714 | base clean_revert |
|
746 | base clean_revert | |
715 | base clean_untracked-clean |
|
747 | base clean_untracked-clean | |
|
748 | base clean_untracked-revert | |||
716 | wc clean_wc |
|
749 | wc clean_wc | |
717 | wc missing_wc |
|
750 | wc missing_wc | |
718 | parent modified_clean |
|
751 | parent modified_clean | |
719 | base modified_revert |
|
752 | base modified_revert | |
720 | parent modified_untracked-clean |
|
753 | parent modified_untracked-clean | |
|
754 | base modified_untracked-revert | |||
721 | wc modified_wc |
|
755 | wc modified_wc | |
722 | base removed_revert |
|
756 | base removed_revert | |
|
757 | base removed_untracked-revert | |||
723 | wc removed_wc |
|
758 | wc removed_wc | |
724 |
|
759 | |||
725 | $ cd .. |
|
760 | $ cd .. | |
@@ -738,14 +773,17 b' check revert output' | |||||
738 | undeleting added_removed |
|
773 | undeleting added_removed | |
739 | undeleting added_revert |
|
774 | undeleting added_revert | |
740 | undeleting added_untracked-clean |
|
775 | undeleting added_untracked-clean | |
|
776 | undeleting added_untracked-revert | |||
741 | reverting added_wc |
|
777 | reverting added_wc | |
742 | undeleting clean_removed |
|
778 | undeleting clean_removed | |
743 | undeleting clean_untracked-clean |
|
779 | undeleting clean_untracked-clean | |
|
780 | undeleting clean_untracked-revert | |||
744 | reverting clean_wc |
|
781 | reverting clean_wc | |
745 | forgetting missing_wc |
|
782 | forgetting missing_wc | |
746 | undeleting modified_removed |
|
783 | undeleting modified_removed | |
747 | reverting modified_revert |
|
784 | reverting modified_revert | |
748 | undeleting modified_untracked-clean |
|
785 | undeleting modified_untracked-clean | |
|
786 | undeleting modified_untracked-revert | |||
749 | reverting modified_wc |
|
787 | reverting modified_wc | |
750 | forgetting removed_revert |
|
788 | forgetting removed_revert | |
751 | forgetting removed_wc |
|
789 | forgetting removed_wc | |
@@ -762,8 +800,10 b' additional `.orig` backup file when appl' | |||||
762 | +wc clean_wc.orig |
|
800 | +wc clean_wc.orig | |
763 | +wc missing_wc |
|
801 | +wc missing_wc | |
764 | +base modified_revert.orig |
|
802 | +base modified_revert.orig | |
|
803 | +base modified_untracked-revert.orig | |||
765 | +wc modified_wc.orig |
|
804 | +wc modified_wc.orig | |
766 | +base removed_revert |
|
805 | +base removed_revert | |
|
806 | +base removed_untracked-revert | |||
767 | +wc removed_wc |
|
807 | +wc removed_wc | |
768 |
|
808 | |||
769 | Test revert --all to "base" content |
|
809 | Test revert --all to "base" content | |
@@ -788,17 +828,20 b' Misbehavior:' | |||||
788 | removing added_wc |
|
828 | removing added_wc | |
789 | undeleting clean_removed |
|
829 | undeleting clean_removed | |
790 | undeleting clean_untracked-clean |
|
830 | undeleting clean_untracked-clean | |
|
831 | undeleting clean_untracked-revert | |||
791 | reverting clean_wc |
|
832 | reverting clean_wc | |
792 | forgetting missing_wc |
|
833 | forgetting missing_wc | |
793 | reverting modified_clean |
|
834 | reverting modified_clean | |
794 | undeleting modified_removed |
|
835 | undeleting modified_removed | |
795 | reverting modified_revert |
|
836 | reverting modified_revert | |
796 | undeleting modified_untracked-clean |
|
837 | undeleting modified_untracked-clean | |
|
838 | undeleting modified_untracked-revert | |||
797 | reverting modified_wc |
|
839 | reverting modified_wc | |
798 | adding removed_clean |
|
840 | adding removed_clean | |
799 | adding removed_removed |
|
841 | adding removed_removed | |
800 | reverting removed_revert |
|
842 | reverting removed_revert | |
801 | adding removed_untracked-clean |
|
843 | adding removed_untracked-clean | |
|
844 | adding removed_untracked-revert | |||
802 | reverting removed_wc |
|
845 | reverting removed_wc | |
803 |
|
846 | |||
804 | Compare resulting directory with revert target. |
|
847 | Compare resulting directory with revert target. | |
@@ -846,6 +889,8 b' revert all files individually and check ' | |||||
846 |
|
889 | |||
847 | ### revert for: added_untracked-clean |
|
890 | ### revert for: added_untracked-clean | |
848 |
|
891 | |||
|
892 | ### revert for: added_untracked-revert | |||
|
893 | ||||
849 | ### revert for: added_wc |
|
894 | ### revert for: added_wc | |
850 |
|
895 | |||
851 | ### revert for: clean_clean |
|
896 | ### revert for: clean_clean | |
@@ -858,6 +903,8 b' revert all files individually and check ' | |||||
858 |
|
903 | |||
859 | ### revert for: clean_untracked-clean |
|
904 | ### revert for: clean_untracked-clean | |
860 |
|
905 | |||
|
906 | ### revert for: clean_untracked-revert | |||
|
907 | ||||
861 | ### revert for: clean_wc |
|
908 | ### revert for: clean_wc | |
862 |
|
909 | |||
863 | ### revert for: missing_clean |
|
910 | ### revert for: missing_clean | |
@@ -872,6 +919,9 b' revert all files individually and check ' | |||||
872 | ### revert for: missing_untracked-clean |
|
919 | ### revert for: missing_untracked-clean | |
873 | missing_untracked-clean: no such file in rev * (glob) |
|
920 | missing_untracked-clean: no such file in rev * (glob) | |
874 |
|
921 | |||
|
922 | ### revert for: missing_untracked-revert | |||
|
923 | missing_untracked-revert: no such file in rev * (glob) | |||
|
924 | ||||
875 | ### revert for: missing_wc |
|
925 | ### revert for: missing_wc | |
876 |
|
926 | |||
877 | ### revert for: modified_clean |
|
927 | ### revert for: modified_clean | |
@@ -883,6 +933,8 b' revert all files individually and check ' | |||||
883 |
|
933 | |||
884 | ### revert for: modified_untracked-clean |
|
934 | ### revert for: modified_untracked-clean | |
885 |
|
935 | |||
|
936 | ### revert for: modified_untracked-revert | |||
|
937 | ||||
886 | ### revert for: modified_wc |
|
938 | ### revert for: modified_wc | |
887 |
|
939 | |||
888 | ### revert for: removed_clean |
|
940 | ### revert for: removed_clean | |
@@ -896,6 +948,9 b' revert all files individually and check ' | |||||
896 | ### revert for: removed_untracked-clean |
|
948 | ### revert for: removed_untracked-clean | |
897 | removed_untracked-clean: no such file in rev * (glob) |
|
949 | removed_untracked-clean: no such file in rev * (glob) | |
898 |
|
950 | |||
|
951 | ### revert for: removed_untracked-revert | |||
|
952 | file not managed: removed_untracked-revert | |||
|
953 | ||||
899 | ### revert for: removed_wc |
|
954 | ### revert for: removed_wc | |
900 |
|
955 | |||
901 |
|
956 | |||
@@ -929,6 +984,7 b' Misbehavior:' | |||||
929 | | - removed_revert |
|
984 | | - removed_revert | |
930 | | - added_removed |
|
985 | | - added_removed | |
931 | | - added_untracked-clean |
|
986 | | - added_untracked-clean | |
|
987 | | - added_untracked-revert | |||
932 |
|
988 | |||
933 | $ for file in `python ../gen-revert-cases.py filelist`; do |
|
989 | $ for file in `python ../gen-revert-cases.py filelist`; do | |
934 | > echo '### revert for:' $file; |
|
990 | > echo '### revert for:' $file; | |
@@ -943,6 +999,8 b' Misbehavior:' | |||||
943 |
|
999 | |||
944 | ### revert for: added_untracked-clean |
|
1000 | ### revert for: added_untracked-clean | |
945 |
|
1001 | |||
|
1002 | ### revert for: added_untracked-revert | |||
|
1003 | ||||
946 | ### revert for: added_wc |
|
1004 | ### revert for: added_wc | |
947 |
|
1005 | |||
948 | ### revert for: clean_clean |
|
1006 | ### revert for: clean_clean | |
@@ -953,6 +1011,8 b' Misbehavior:' | |||||
953 |
|
1011 | |||
954 | ### revert for: clean_untracked-clean |
|
1012 | ### revert for: clean_untracked-clean | |
955 |
|
1013 | |||
|
1014 | ### revert for: clean_untracked-revert | |||
|
1015 | ||||
956 | ### revert for: clean_wc |
|
1016 | ### revert for: clean_wc | |
957 |
|
1017 | |||
958 | ### revert for: missing_clean |
|
1018 | ### revert for: missing_clean | |
@@ -967,6 +1027,9 b' Misbehavior:' | |||||
967 | ### revert for: missing_untracked-clean |
|
1027 | ### revert for: missing_untracked-clean | |
968 | missing_untracked-clean: no such file in rev * (glob) |
|
1028 | missing_untracked-clean: no such file in rev * (glob) | |
969 |
|
1029 | |||
|
1030 | ### revert for: missing_untracked-revert | |||
|
1031 | missing_untracked-revert: no such file in rev * (glob) | |||
|
1032 | ||||
970 | ### revert for: missing_wc |
|
1033 | ### revert for: missing_wc | |
971 |
|
1034 | |||
972 | ### revert for: modified_clean |
|
1035 | ### revert for: modified_clean | |
@@ -977,6 +1040,8 b' Misbehavior:' | |||||
977 |
|
1040 | |||
978 | ### revert for: modified_untracked-clean |
|
1041 | ### revert for: modified_untracked-clean | |
979 |
|
1042 | |||
|
1043 | ### revert for: modified_untracked-revert | |||
|
1044 | ||||
980 | ### revert for: modified_wc |
|
1045 | ### revert for: modified_wc | |
981 |
|
1046 | |||
982 | ### revert for: removed_clean |
|
1047 | ### revert for: removed_clean | |
@@ -987,6 +1052,8 b' Misbehavior:' | |||||
987 |
|
1052 | |||
988 | ### revert for: removed_untracked-clean |
|
1053 | ### revert for: removed_untracked-clean | |
989 |
|
1054 | |||
|
1055 | ### revert for: removed_untracked-revert | |||
|
1056 | ||||
990 | ### revert for: removed_wc |
|
1057 | ### revert for: removed_wc | |
991 |
|
1058 | |||
992 |
|
1059 |
General Comments 0
You need to be logged in to leave comments.
Login now