Show More
@@ -453,14 +453,13 b' Write the python script to disk' | |||||
453 | > 'revert': lambda cc: cc[0], |
|
453 | > 'revert': lambda cc: cc[0], | |
454 | > # wc: file exist with a content different from base and parent |
|
454 | > # wc: file exist with a content different from base and parent | |
455 | > 'wc': lambda cc: 'wc', |
|
455 | > 'wc': lambda cc: 'wc', | |
456 | > # removed: file is missing and marked as untracked |
|
|||
457 | > 'removed': lambda cc: None, |
|
|||
458 | > # deleted: file is recorded as tracked but missing |
|
456 | > # deleted: file is recorded as tracked but missing | |
459 | > # rely on file deletion outside of this script |
|
457 | > # rely on file deletion outside of this script | |
460 | > 'deleted': lambda cc:'TOBEDELETED', |
|
458 | > 'deleted': lambda cc:'TOBEDELETED', | |
461 | > } |
|
459 | > } | |
462 | > # untracked-X is a version of X where the file is not tracked (? unknown) |
|
460 | > # untracked-X is a version of X where the file is not tracked (? unknown) | |
463 | > wccontent['untracked-clean'] = wccontent['clean'] |
|
461 | > wccontent['untracked-clean'] = wccontent['clean'] | |
|
462 | > wccontent['untracked-deleted'] = wccontent['deleted'] | |||
464 | > wccontent['untracked-revert'] = wccontent['revert'] |
|
463 | > wccontent['untracked-revert'] = wccontent['revert'] | |
465 | > wccontent['untracked-wc'] = wccontent['wc'] |
|
464 | > wccontent['untracked-wc'] = wccontent['wc'] | |
466 | > |
|
465 | > | |
@@ -472,7 +471,7 b' Write the python script to disk' | |||||
472 | > continue |
|
471 | > continue | |
473 | > if not ctxvalue[0] and 'revert' in wckey: |
|
472 | > if not ctxvalue[0] and 'revert' in wckey: | |
474 | > continue |
|
473 | > continue | |
475 |
> if not ctxvalue[1] and |
|
474 | > if not ctxvalue[1] and 'deleted' in wckey: | |
476 | > continue |
|
475 | > continue | |
477 | > filename = "%s_%s" % (ctxkey, wckey) |
|
476 | > filename = "%s_%s" % (ctxkey, wckey) | |
478 | > combination.append((filename, ctxkey, wckey)) |
|
477 | > combination.append((filename, ctxkey, wckey)) | |
@@ -514,14 +513,14 b' check list of planned files' | |||||
514 | $ python gen-revert-cases.py filelist |
|
513 | $ python gen-revert-cases.py filelist | |
515 | added_clean |
|
514 | added_clean | |
516 | added_deleted |
|
515 | added_deleted | |
517 | added_removed |
|
|||
518 | added_untracked-clean |
|
516 | added_untracked-clean | |
|
517 | added_untracked-deleted | |||
519 | added_untracked-wc |
|
518 | added_untracked-wc | |
520 | added_wc |
|
519 | added_wc | |
521 | clean_clean |
|
520 | clean_clean | |
522 | clean_deleted |
|
521 | clean_deleted | |
523 | clean_removed |
|
|||
524 | clean_untracked-clean |
|
522 | clean_untracked-clean | |
|
523 | clean_untracked-deleted | |||
525 | clean_untracked-wc |
|
524 | clean_untracked-wc | |
526 | clean_wc |
|
525 | clean_wc | |
527 | missing_clean |
|
526 | missing_clean | |
@@ -530,9 +529,9 b' check list of planned files' | |||||
530 | missing_wc |
|
529 | missing_wc | |
531 | modified_clean |
|
530 | modified_clean | |
532 | modified_deleted |
|
531 | modified_deleted | |
533 | modified_removed |
|
|||
534 | modified_revert |
|
532 | modified_revert | |
535 | modified_untracked-clean |
|
533 | modified_untracked-clean | |
|
534 | modified_untracked-deleted | |||
536 | modified_untracked-revert |
|
535 | modified_untracked-revert | |
537 | modified_untracked-wc |
|
536 | modified_untracked-wc | |
538 | modified_wc |
|
537 | modified_wc | |
@@ -570,15 +569,15 b' Generate base changeset' | |||||
570 | $ hg addremove --similarity 0 |
|
569 | $ hg addremove --similarity 0 | |
571 | adding clean_clean |
|
570 | adding clean_clean | |
572 | adding clean_deleted |
|
571 | adding clean_deleted | |
573 | adding clean_removed |
|
|||
574 | adding clean_untracked-clean |
|
572 | adding clean_untracked-clean | |
|
573 | adding clean_untracked-deleted | |||
575 | adding clean_untracked-wc |
|
574 | adding clean_untracked-wc | |
576 | adding clean_wc |
|
575 | adding clean_wc | |
577 | adding modified_clean |
|
576 | adding modified_clean | |
578 | adding modified_deleted |
|
577 | adding modified_deleted | |
579 | adding modified_removed |
|
|||
580 | adding modified_revert |
|
578 | adding modified_revert | |
581 | adding modified_untracked-clean |
|
579 | adding modified_untracked-clean | |
|
580 | adding modified_untracked-deleted | |||
582 | adding modified_untracked-revert |
|
581 | adding modified_untracked-revert | |
583 | adding modified_untracked-wc |
|
582 | adding modified_untracked-wc | |
584 | adding modified_wc |
|
583 | adding modified_wc | |
@@ -591,15 +590,15 b' Generate base changeset' | |||||
591 | $ hg status |
|
590 | $ hg status | |
592 | A clean_clean |
|
591 | A clean_clean | |
593 | A clean_deleted |
|
592 | A clean_deleted | |
594 | A clean_removed |
|
|||
595 | A clean_untracked-clean |
|
593 | A clean_untracked-clean | |
|
594 | A clean_untracked-deleted | |||
596 | A clean_untracked-wc |
|
595 | A clean_untracked-wc | |
597 | A clean_wc |
|
596 | A clean_wc | |
598 | A modified_clean |
|
597 | A modified_clean | |
599 | A modified_deleted |
|
598 | A modified_deleted | |
600 | A modified_removed |
|
|||
601 | A modified_revert |
|
599 | A modified_revert | |
602 | A modified_untracked-clean |
|
600 | A modified_untracked-clean | |
|
601 | A modified_untracked-deleted | |||
603 | A modified_untracked-revert |
|
602 | A modified_untracked-revert | |
604 | A modified_untracked-wc |
|
603 | A modified_untracked-wc | |
605 | A modified_wc |
|
604 | A modified_wc | |
@@ -617,15 +616,15 b' Generate base changeset' | |||||
617 | $ cat ../content-base.txt |
|
616 | $ cat ../content-base.txt | |
618 | base clean_clean |
|
617 | base clean_clean | |
619 | base clean_deleted |
|
618 | base clean_deleted | |
620 | base clean_removed |
|
|||
621 | base clean_untracked-clean |
|
619 | base clean_untracked-clean | |
|
620 | base clean_untracked-deleted | |||
622 | base clean_untracked-wc |
|
621 | base clean_untracked-wc | |
623 | base clean_wc |
|
622 | base clean_wc | |
624 | base modified_clean |
|
623 | base modified_clean | |
625 | base modified_deleted |
|
624 | base modified_deleted | |
626 | base modified_removed |
|
|||
627 | base modified_revert |
|
625 | base modified_revert | |
628 | base modified_untracked-clean |
|
626 | base modified_untracked-clean | |
|
627 | base modified_untracked-deleted | |||
629 | base modified_untracked-revert |
|
628 | base modified_untracked-revert | |
630 | base modified_untracked-wc |
|
629 | base modified_untracked-wc | |
631 | base modified_wc |
|
630 | base modified_wc | |
@@ -642,8 +641,8 b' Create parent changeset' | |||||
642 | $ hg addremove --similarity 0 |
|
641 | $ hg addremove --similarity 0 | |
643 | adding added_clean |
|
642 | adding added_clean | |
644 | adding added_deleted |
|
643 | adding added_deleted | |
645 | adding added_removed |
|
|||
646 | adding added_untracked-clean |
|
644 | adding added_untracked-clean | |
|
645 | adding added_untracked-deleted | |||
647 | adding added_untracked-wc |
|
646 | adding added_untracked-wc | |
648 | adding added_wc |
|
647 | adding added_wc | |
649 | removing removed_clean |
|
648 | removing removed_clean | |
@@ -655,16 +654,16 b' Create parent changeset' | |||||
655 | $ hg status |
|
654 | $ hg status | |
656 | M modified_clean |
|
655 | M modified_clean | |
657 | M modified_deleted |
|
656 | M modified_deleted | |
658 | M modified_removed |
|
|||
659 | M modified_revert |
|
657 | M modified_revert | |
660 | M modified_untracked-clean |
|
658 | M modified_untracked-clean | |
|
659 | M modified_untracked-deleted | |||
661 | M modified_untracked-revert |
|
660 | M modified_untracked-revert | |
662 | M modified_untracked-wc |
|
661 | M modified_untracked-wc | |
663 | M modified_wc |
|
662 | M modified_wc | |
664 | A added_clean |
|
663 | A added_clean | |
665 | A added_deleted |
|
664 | A added_deleted | |
666 | A added_removed |
|
|||
667 | A added_untracked-clean |
|
665 | A added_untracked-clean | |
|
666 | A added_untracked-deleted | |||
668 | A added_untracked-wc |
|
667 | A added_untracked-wc | |
669 | A added_wc |
|
668 | A added_wc | |
670 | R removed_clean |
|
669 | R removed_clean | |
@@ -681,21 +680,21 b' Create parent changeset' | |||||
681 | $ cat ../content-parent.txt |
|
680 | $ cat ../content-parent.txt | |
682 | parent added_clean |
|
681 | parent added_clean | |
683 | parent added_deleted |
|
682 | parent added_deleted | |
684 | parent added_removed |
|
|||
685 | parent added_untracked-clean |
|
683 | parent added_untracked-clean | |
|
684 | parent added_untracked-deleted | |||
686 | parent added_untracked-wc |
|
685 | parent added_untracked-wc | |
687 | parent added_wc |
|
686 | parent added_wc | |
688 | base clean_clean |
|
687 | base clean_clean | |
689 | base clean_deleted |
|
688 | base clean_deleted | |
690 | base clean_removed |
|
|||
691 | base clean_untracked-clean |
|
689 | base clean_untracked-clean | |
|
690 | base clean_untracked-deleted | |||
692 | base clean_untracked-wc |
|
691 | base clean_untracked-wc | |
693 | base clean_wc |
|
692 | base clean_wc | |
694 | parent modified_clean |
|
693 | parent modified_clean | |
695 | parent modified_deleted |
|
694 | parent modified_deleted | |
696 | parent modified_removed |
|
|||
697 | parent modified_revert |
|
695 | parent modified_revert | |
698 | parent modified_untracked-clean |
|
696 | parent modified_untracked-clean | |
|
697 | parent modified_untracked-deleted | |||
699 | parent modified_untracked-revert |
|
698 | parent modified_untracked-revert | |
700 | parent modified_untracked-wc |
|
699 | parent modified_untracked-wc | |
701 | parent modified_wc |
|
700 | parent modified_wc | |
@@ -704,11 +703,8 b' Setup working directory' | |||||
704 |
|
703 | |||
705 | $ python ../gen-revert-cases.py wc |
|
704 | $ python ../gen-revert-cases.py wc | |
706 | $ hg addremove --similarity 0 |
|
705 | $ hg addremove --similarity 0 | |
707 | removing added_removed |
|
|||
708 | removing clean_removed |
|
|||
709 | adding missing_untracked-wc |
|
706 | adding missing_untracked-wc | |
710 | adding missing_wc |
|
707 | adding missing_wc | |
711 | removing modified_removed |
|
|||
712 | adding removed_revert |
|
708 | adding removed_revert | |
713 | adding removed_untracked-revert |
|
709 | adding removed_untracked-revert | |
714 | adding removed_untracked-wc |
|
710 | adding removed_untracked-wc | |
@@ -723,14 +719,14 b' Setup working directory' | |||||
723 | A missing_wc |
|
719 | A missing_wc | |
724 | A removed_revert |
|
720 | A removed_revert | |
725 | A removed_wc |
|
721 | A removed_wc | |
726 | R added_removed |
|
|||
727 | R added_untracked-clean |
|
722 | R added_untracked-clean | |
|
723 | R added_untracked-deleted | |||
728 | R added_untracked-wc |
|
724 | R added_untracked-wc | |
729 | R clean_removed |
|
|||
730 | R clean_untracked-clean |
|
725 | R clean_untracked-clean | |
|
726 | R clean_untracked-deleted | |||
731 | R clean_untracked-wc |
|
727 | R clean_untracked-wc | |
732 | R modified_removed |
|
|||
733 | R modified_untracked-clean |
|
728 | R modified_untracked-clean | |
|
729 | R modified_untracked-deleted | |||
734 | R modified_untracked-revert |
|
730 | R modified_untracked-revert | |
735 | R modified_untracked-wc |
|
731 | R modified_untracked-wc | |
736 | ! added_deleted |
|
732 | ! added_deleted | |
@@ -748,11 +744,11 b' Setup working directory' | |||||
748 | A added_clean |
|
744 | A added_clean | |
749 | A added_wc |
|
745 | A added_wc | |
750 | A missing_wc |
|
746 | A missing_wc | |
751 | R clean_removed |
|
|||
752 | R clean_untracked-clean |
|
747 | R clean_untracked-clean | |
|
748 | R clean_untracked-deleted | |||
753 | R clean_untracked-wc |
|
749 | R clean_untracked-wc | |
754 | R modified_removed |
|
|||
755 | R modified_untracked-clean |
|
750 | R modified_untracked-clean | |
|
751 | R modified_untracked-deleted | |||
756 | R modified_untracked-revert |
|
752 | R modified_untracked-revert | |
757 | R modified_untracked-wc |
|
753 | R modified_untracked-wc | |
758 | R removed_clean |
|
754 | R removed_clean | |
@@ -803,20 +799,20 b' check revert output' | |||||
803 |
|
799 | |||
804 | $ hg revert --all |
|
800 | $ hg revert --all | |
805 | reverting added_deleted |
|
801 | reverting added_deleted | |
806 | undeleting added_removed |
|
|||
807 | undeleting added_untracked-clean |
|
802 | undeleting added_untracked-clean | |
|
803 | undeleting added_untracked-deleted | |||
808 | undeleting added_untracked-wc |
|
804 | undeleting added_untracked-wc | |
809 | reverting added_wc |
|
805 | reverting added_wc | |
810 | reverting clean_deleted |
|
806 | reverting clean_deleted | |
811 | undeleting clean_removed |
|
|||
812 | undeleting clean_untracked-clean |
|
807 | undeleting clean_untracked-clean | |
|
808 | undeleting clean_untracked-deleted | |||
813 | undeleting clean_untracked-wc |
|
809 | undeleting clean_untracked-wc | |
814 | reverting clean_wc |
|
810 | reverting clean_wc | |
815 | forgetting missing_wc |
|
811 | forgetting missing_wc | |
816 | reverting modified_deleted |
|
812 | reverting modified_deleted | |
817 | undeleting modified_removed |
|
|||
818 | reverting modified_revert |
|
813 | reverting modified_revert | |
819 | undeleting modified_untracked-clean |
|
814 | undeleting modified_untracked-clean | |
|
815 | undeleting modified_untracked-deleted | |||
820 | undeleting modified_untracked-revert |
|
816 | undeleting modified_untracked-revert | |
821 | undeleting modified_untracked-wc |
|
817 | undeleting modified_untracked-wc | |
822 | reverting modified_wc |
|
818 | reverting modified_wc | |
@@ -861,15 +857,15 b' check revert output' | |||||
861 | removing added_deleted |
|
857 | removing added_deleted | |
862 | removing added_wc |
|
858 | removing added_wc | |
863 | reverting clean_deleted |
|
859 | reverting clean_deleted | |
864 | undeleting clean_removed |
|
|||
865 | undeleting clean_untracked-clean |
|
860 | undeleting clean_untracked-clean | |
|
861 | undeleting clean_untracked-deleted | |||
866 | undeleting clean_untracked-wc |
|
862 | undeleting clean_untracked-wc | |
867 | reverting clean_wc |
|
863 | reverting clean_wc | |
868 | forgetting missing_wc |
|
864 | forgetting missing_wc | |
869 | reverting modified_clean |
|
865 | reverting modified_clean | |
870 | reverting modified_deleted |
|
866 | reverting modified_deleted | |
871 | undeleting modified_removed |
|
|||
872 | undeleting modified_untracked-clean |
|
867 | undeleting modified_untracked-clean | |
|
868 | undeleting modified_untracked-deleted | |||
873 | undeleting modified_untracked-revert |
|
869 | undeleting modified_untracked-revert | |
874 | undeleting modified_untracked-wc |
|
870 | undeleting modified_untracked-wc | |
875 | reverting modified_wc |
|
871 | reverting modified_wc | |
@@ -921,9 +917,9 b' revert all files individually and check ' | |||||
921 |
|
917 | |||
922 | ### revert for: added_deleted |
|
918 | ### revert for: added_deleted | |
923 |
|
919 | |||
924 |
### revert for: added_ |
|
920 | ### revert for: added_untracked-clean | |
925 |
|
921 | |||
926 |
### revert for: added_untracked- |
|
922 | ### revert for: added_untracked-deleted | |
927 |
|
923 | |||
928 | ### revert for: added_untracked-wc |
|
924 | ### revert for: added_untracked-wc | |
929 |
|
925 | |||
@@ -934,9 +930,9 b' revert all files individually and check ' | |||||
934 |
|
930 | |||
935 | ### revert for: clean_deleted |
|
931 | ### revert for: clean_deleted | |
936 |
|
932 | |||
937 |
### revert for: clean_ |
|
933 | ### revert for: clean_untracked-clean | |
938 |
|
934 | |||
939 |
### revert for: clean_untracked- |
|
935 | ### revert for: clean_untracked-deleted | |
940 |
|
936 | |||
941 | ### revert for: clean_untracked-wc |
|
937 | ### revert for: clean_untracked-wc | |
942 |
|
938 | |||
@@ -958,12 +954,12 b' revert all files individually and check ' | |||||
958 |
|
954 | |||
959 | ### revert for: modified_deleted |
|
955 | ### revert for: modified_deleted | |
960 |
|
956 | |||
961 | ### revert for: modified_removed |
|
|||
962 |
|
||||
963 | ### revert for: modified_revert |
|
957 | ### revert for: modified_revert | |
964 |
|
958 | |||
965 | ### revert for: modified_untracked-clean |
|
959 | ### revert for: modified_untracked-clean | |
966 |
|
960 | |||
|
961 | ### revert for: modified_untracked-deleted | |||
|
962 | ||||
967 | ### revert for: modified_untracked-revert |
|
963 | ### revert for: modified_untracked-revert | |
968 |
|
964 | |||
969 | ### revert for: modified_untracked-wc |
|
965 | ### revert for: modified_untracked-wc | |
@@ -1015,12 +1011,12 b' revert all files individually and check ' | |||||
1015 |
|
1011 | |||
1016 | ### revert for: added_deleted |
|
1012 | ### revert for: added_deleted | |
1017 |
|
1013 | |||
1018 | ### revert for: added_removed |
|
|||
1019 | no changes needed to added_removed |
|
|||
1020 |
|
||||
1021 | ### revert for: added_untracked-clean |
|
1014 | ### revert for: added_untracked-clean | |
1022 | no changes needed to added_untracked-clean |
|
1015 | no changes needed to added_untracked-clean | |
1023 |
|
1016 | |||
|
1017 | ### revert for: added_untracked-deleted | |||
|
1018 | no changes needed to added_untracked-deleted | |||
|
1019 | ||||
1024 | ### revert for: added_untracked-wc |
|
1020 | ### revert for: added_untracked-wc | |
1025 | no changes needed to added_untracked-wc |
|
1021 | no changes needed to added_untracked-wc | |
1026 |
|
1022 | |||
@@ -1031,9 +1027,9 b' revert all files individually and check ' | |||||
1031 |
|
1027 | |||
1032 | ### revert for: clean_deleted |
|
1028 | ### revert for: clean_deleted | |
1033 |
|
1029 | |||
1034 |
### revert for: clean_ |
|
1030 | ### revert for: clean_untracked-clean | |
1035 |
|
1031 | |||
1036 |
### revert for: clean_untracked- |
|
1032 | ### revert for: clean_untracked-deleted | |
1037 |
|
1033 | |||
1038 | ### revert for: clean_untracked-wc |
|
1034 | ### revert for: clean_untracked-wc | |
1039 |
|
1035 | |||
@@ -1054,13 +1050,13 b' revert all files individually and check ' | |||||
1054 |
|
1050 | |||
1055 | ### revert for: modified_deleted |
|
1051 | ### revert for: modified_deleted | |
1056 |
|
1052 | |||
1057 | ### revert for: modified_removed |
|
|||
1058 |
|
||||
1059 | ### revert for: modified_revert |
|
1053 | ### revert for: modified_revert | |
1060 | no changes needed to modified_revert |
|
1054 | no changes needed to modified_revert | |
1061 |
|
1055 | |||
1062 | ### revert for: modified_untracked-clean |
|
1056 | ### revert for: modified_untracked-clean | |
1063 |
|
1057 | |||
|
1058 | ### revert for: modified_untracked-deleted | |||
|
1059 | ||||
1064 | ### revert for: modified_untracked-revert |
|
1060 | ### revert for: modified_untracked-revert | |
1065 |
|
1061 | |||
1066 | ### revert for: modified_untracked-wc |
|
1062 | ### revert for: modified_untracked-wc |
General Comments 0
You need to be logged in to leave comments.
Login now