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