Show More
@@ -462,8 +462,8 Write the python script to disk | |||
|
462 | 462 | > |
|
463 | 463 | > # build the combination of possible states |
|
464 | 464 | > combination = [] |
|
465 |
> for ctxkey, ctxvalue in |
|
|
466 |
> for wckey, (tracked, wcfunc) in |
|
|
465 | > for ctxkey, ctxvalue in ctxcontent.iteritems(): | |
|
466 | > for wckey, (tracked, wcfunc) in wccontent.iteritems(): | |
|
467 | 467 | > base, parent = ctxvalue |
|
468 | 468 | > if (base == parent and 'revert' in wckey): |
|
469 | 469 | > continue |
@@ -481,6 +481,9 Write the python script to disk | |||
|
481 | 481 | > trackedstring) |
|
482 | 482 | > combination.append((filename, base, parent, wcc)) |
|
483 | 483 | > |
|
484 | > # make sure we have stable output | |
|
485 | > combination.sort() | |
|
486 | > | |
|
484 | 487 | > # retrieve the state we must generate |
|
485 | 488 | > target = sys.argv[1] |
|
486 | 489 | > |
@@ -512,36 +515,36 Write the python script to disk | |||
|
512 | 515 | check list of planned files |
|
513 | 516 | |
|
514 | 517 | $ python gen-revert-cases.py filelist |
|
518 | content1_content1_content1-tracked | |
|
519 | content1_content1_content1-untracked | |
|
520 | content1_content1_content3-tracked | |
|
521 | content1_content1_content3-untracked | |
|
522 | content1_content1_missing-tracked | |
|
523 | content1_content1_missing-untracked | |
|
524 | content1_content2_content1-tracked | |
|
525 | content1_content2_content1-untracked | |
|
526 | content1_content2_content2-tracked | |
|
527 | content1_content2_content2-untracked | |
|
528 | content1_content2_content3-tracked | |
|
529 | content1_content2_content3-untracked | |
|
530 | content1_content2_missing-tracked | |
|
531 | content1_content2_missing-untracked | |
|
532 | content1_missing_content1-tracked | |
|
533 | content1_missing_content1-untracked | |
|
534 | content1_missing_content3-tracked | |
|
535 | content1_missing_content3-untracked | |
|
536 | content1_missing_missing-tracked | |
|
537 | content1_missing_missing-untracked | |
|
515 | 538 | missing_content2_content2-tracked |
|
516 | missing_content2_missing-tracked | |
|
517 | 539 | missing_content2_content2-untracked |
|
518 | missing_content2_missing-untracked | |
|
519 | missing_content2_content3-untracked | |
|
520 | 540 | missing_content2_content3-tracked |
|
521 |
|
|
|
522 |
|
|
|
523 |
|
|
|
524 | content1_content1_missing-untracked | |
|
525 |
|
|
|
526 | content1_content1_content3-tracked | |
|
541 | missing_content2_content3-untracked | |
|
542 | missing_content2_missing-tracked | |
|
543 | missing_content2_missing-untracked | |
|
544 | missing_missing_content3-tracked | |
|
545 | missing_missing_content3-untracked | |
|
527 | 546 | missing_missing_missing-tracked |
|
528 | 547 | missing_missing_missing-untracked |
|
529 | missing_missing_content3-untracked | |
|
530 | missing_missing_content3-tracked | |
|
531 | content1_content2_content2-tracked | |
|
532 | content1_content2_missing-tracked | |
|
533 | content1_content2_content1-tracked | |
|
534 | content1_content2_content2-untracked | |
|
535 | content1_content2_missing-untracked | |
|
536 | content1_content2_content1-untracked | |
|
537 | content1_content2_content3-untracked | |
|
538 | content1_content2_content3-tracked | |
|
539 | content1_missing_missing-tracked | |
|
540 | content1_missing_content1-tracked | |
|
541 | content1_missing_missing-untracked | |
|
542 | content1_missing_content1-untracked | |
|
543 | content1_missing_content3-untracked | |
|
544 | content1_missing_content3-tracked | |
|
545 | 548 | |
|
546 | 549 | Script to make a simple text version of the content |
|
547 | 550 | --------------------------------------------------- |
@@ -913,31 +916,69 revert all files individually and check | |||
|
913 | 916 | > hg revert $file; |
|
914 | 917 | > echo |
|
915 | 918 | > done |
|
919 | ### revert for: content1_content1_content1-tracked | |
|
920 | no changes needed to content1_content1_content1-tracked | |
|
921 | ||
|
922 | ### revert for: content1_content1_content1-untracked | |
|
923 | ||
|
924 | ### revert for: content1_content1_content3-tracked | |
|
925 | ||
|
926 | ### revert for: content1_content1_content3-untracked | |
|
927 | ||
|
928 | ### revert for: content1_content1_missing-tracked | |
|
929 | ||
|
930 | ### revert for: content1_content1_missing-untracked | |
|
931 | ||
|
932 | ### revert for: content1_content2_content1-tracked | |
|
933 | ||
|
934 | ### revert for: content1_content2_content1-untracked | |
|
935 | ||
|
936 | ### revert for: content1_content2_content2-tracked | |
|
937 | no changes needed to content1_content2_content2-tracked | |
|
938 | ||
|
939 | ### revert for: content1_content2_content2-untracked | |
|
940 | ||
|
941 | ### revert for: content1_content2_content3-tracked | |
|
942 | ||
|
943 | ### revert for: content1_content2_content3-untracked | |
|
944 | ||
|
945 | ### revert for: content1_content2_missing-tracked | |
|
946 | ||
|
947 | ### revert for: content1_content2_missing-untracked | |
|
948 | ||
|
949 | ### revert for: content1_missing_content1-tracked | |
|
950 | ||
|
951 | ### revert for: content1_missing_content1-untracked | |
|
952 | file not managed: content1_missing_content1-untracked | |
|
953 | ||
|
954 | ### revert for: content1_missing_content3-tracked | |
|
955 | ||
|
956 | ### revert for: content1_missing_content3-untracked | |
|
957 | file not managed: content1_missing_content3-untracked | |
|
958 | ||
|
959 | ### revert for: content1_missing_missing-tracked | |
|
960 | content1_missing_missing-tracked: no such file in rev * (glob) | |
|
961 | ||
|
962 | ### revert for: content1_missing_missing-untracked | |
|
963 | content1_missing_missing-untracked: no such file in rev * (glob) | |
|
964 | ||
|
916 | 965 | ### revert for: missing_content2_content2-tracked |
|
917 | 966 | no changes needed to missing_content2_content2-tracked |
|
918 | 967 | |
|
919 | ### revert for: missing_content2_missing-tracked | |
|
920 | ||
|
921 | 968 | ### revert for: missing_content2_content2-untracked |
|
922 | 969 | |
|
923 | ### revert for: missing_content2_missing-untracked | |
|
924 | ||
|
925 | ### revert for: missing_content2_content3-untracked | |
|
926 | ||
|
927 | 970 | ### revert for: missing_content2_content3-tracked |
|
928 | 971 | |
|
929 |
### revert for: |
|
|
930 | no changes needed to content1_content1_content1-tracked | |
|
972 | ### revert for: missing_content2_content3-untracked | |
|
931 | 973 | |
|
932 |
### revert for: |
|
|
974 | ### revert for: missing_content2_missing-tracked | |
|
933 | 975 | |
|
934 |
### revert for: |
|
|
935 | ||
|
936 | ### revert for: content1_content1_missing-untracked | |
|
976 | ### revert for: missing_content2_missing-untracked | |
|
937 | 977 | |
|
938 |
### revert for: |
|
|
978 | ### revert for: missing_missing_content3-tracked | |
|
939 | 979 | |
|
940 |
### revert for: |
|
|
980 | ### revert for: missing_missing_content3-untracked | |
|
981 | file not managed: missing_missing_content3-untracked | |
|
941 | 982 | |
|
942 | 983 | ### revert for: missing_missing_missing-tracked |
|
943 | 984 | missing_missing_missing-tracked: no such file in rev * (glob) |
@@ -945,44 +986,6 revert all files individually and check | |||
|
945 | 986 | ### revert for: missing_missing_missing-untracked |
|
946 | 987 | missing_missing_missing-untracked: no such file in rev * (glob) |
|
947 | 988 | |
|
948 | ### revert for: missing_missing_content3-untracked | |
|
949 | file not managed: missing_missing_content3-untracked | |
|
950 | ||
|
951 | ### revert for: missing_missing_content3-tracked | |
|
952 | ||
|
953 | ### revert for: content1_content2_content2-tracked | |
|
954 | no changes needed to content1_content2_content2-tracked | |
|
955 | ||
|
956 | ### revert for: content1_content2_missing-tracked | |
|
957 | ||
|
958 | ### revert for: content1_content2_content1-tracked | |
|
959 | ||
|
960 | ### revert for: content1_content2_content2-untracked | |
|
961 | ||
|
962 | ### revert for: content1_content2_missing-untracked | |
|
963 | ||
|
964 | ### revert for: content1_content2_content1-untracked | |
|
965 | ||
|
966 | ### revert for: content1_content2_content3-untracked | |
|
967 | ||
|
968 | ### revert for: content1_content2_content3-tracked | |
|
969 | ||
|
970 | ### revert for: content1_missing_missing-tracked | |
|
971 | content1_missing_missing-tracked: no such file in rev * (glob) | |
|
972 | ||
|
973 | ### revert for: content1_missing_content1-tracked | |
|
974 | ||
|
975 | ### revert for: content1_missing_missing-untracked | |
|
976 | content1_missing_missing-untracked: no such file in rev * (glob) | |
|
977 | ||
|
978 | ### revert for: content1_missing_content1-untracked | |
|
979 | file not managed: content1_missing_content1-untracked | |
|
980 | ||
|
981 | ### revert for: content1_missing_content3-untracked | |
|
982 | file not managed: content1_missing_content3-untracked | |
|
983 | ||
|
984 | ### revert for: content1_missing_content3-tracked | |
|
985 | ||
|
986 | 989 | |
|
987 | 990 | check resulting directory against the --all run |
|
988 | 991 | (There should be no difference) |
@@ -1008,33 +1011,68 revert all files individually and check | |||
|
1008 | 1011 | > hg revert $file --rev 'desc(base)'; |
|
1009 | 1012 | > echo |
|
1010 | 1013 | > done |
|
1011 |
### revert for: |
|
|
1014 | ### revert for: content1_content1_content1-tracked | |
|
1015 | no changes needed to content1_content1_content1-tracked | |
|
1016 | ||
|
1017 | ### revert for: content1_content1_content1-untracked | |
|
1018 | ||
|
1019 | ### revert for: content1_content1_content3-tracked | |
|
1020 | ||
|
1021 | ### revert for: content1_content1_content3-untracked | |
|
1022 | ||
|
1023 | ### revert for: content1_content1_missing-tracked | |
|
1024 | ||
|
1025 | ### revert for: content1_content1_missing-untracked | |
|
1026 | ||
|
1027 | ### revert for: content1_content2_content1-tracked | |
|
1028 | no changes needed to content1_content2_content1-tracked | |
|
1029 | ||
|
1030 | ### revert for: content1_content2_content1-untracked | |
|
1031 | ||
|
1032 | ### revert for: content1_content2_content2-tracked | |
|
1033 | ||
|
1034 | ### revert for: content1_content2_content2-untracked | |
|
1012 | 1035 | |
|
1013 |
### revert for: |
|
|
1036 | ### revert for: content1_content2_content3-tracked | |
|
1037 | ||
|
1038 | ### revert for: content1_content2_content3-untracked | |
|
1039 | ||
|
1040 | ### revert for: content1_content2_missing-tracked | |
|
1041 | ||
|
1042 | ### revert for: content1_content2_missing-untracked | |
|
1043 | ||
|
1044 | ### revert for: content1_missing_content1-tracked | |
|
1045 | no changes needed to content1_missing_content1-tracked | |
|
1046 | ||
|
1047 | ### revert for: content1_missing_content1-untracked | |
|
1048 | ||
|
1049 | ### revert for: content1_missing_content3-tracked | |
|
1050 | ||
|
1051 | ### revert for: content1_missing_content3-untracked | |
|
1052 | ||
|
1053 | ### revert for: content1_missing_missing-tracked | |
|
1054 | ||
|
1055 | ### revert for: content1_missing_missing-untracked | |
|
1056 | ||
|
1057 | ### revert for: missing_content2_content2-tracked | |
|
1014 | 1058 | |
|
1015 | 1059 | ### revert for: missing_content2_content2-untracked |
|
1016 | 1060 | no changes needed to missing_content2_content2-untracked |
|
1017 | 1061 | |
|
1018 |
### revert for: missing_content2_ |
|
|
1019 | no changes needed to missing_content2_missing-untracked | |
|
1062 | ### revert for: missing_content2_content3-tracked | |
|
1020 | 1063 | |
|
1021 | 1064 | ### revert for: missing_content2_content3-untracked |
|
1022 | 1065 | no changes needed to missing_content2_content3-untracked |
|
1023 | 1066 | |
|
1024 |
### revert for: missing_content2_ |
|
|
1067 | ### revert for: missing_content2_missing-tracked | |
|
1025 | 1068 | |
|
1026 |
### revert for: |
|
|
1027 |
no changes needed to |
|
|
1028 | ||
|
1029 | ### revert for: content1_content1_missing-tracked | |
|
1069 | ### revert for: missing_content2_missing-untracked | |
|
1070 | no changes needed to missing_content2_missing-untracked | |
|
1030 | 1071 | |
|
1031 |
### revert for: |
|
|
1032 | ||
|
1033 | ### revert for: content1_content1_missing-untracked | |
|
1072 | ### revert for: missing_missing_content3-tracked | |
|
1034 | 1073 | |
|
1035 |
### revert for: |
|
|
1036 | ||
|
1037 | ### revert for: content1_content1_content3-tracked | |
|
1074 | ### revert for: missing_missing_content3-untracked | |
|
1075 | file not managed: missing_missing_content3-untracked | |
|
1038 | 1076 | |
|
1039 | 1077 | ### revert for: missing_missing_missing-tracked |
|
1040 | 1078 | missing_missing_missing-tracked: no such file in rev * (glob) |
@@ -1042,41 +1080,6 revert all files individually and check | |||
|
1042 | 1080 | ### revert for: missing_missing_missing-untracked |
|
1043 | 1081 | missing_missing_missing-untracked: no such file in rev * (glob) |
|
1044 | 1082 | |
|
1045 | ### revert for: missing_missing_content3-untracked | |
|
1046 | file not managed: missing_missing_content3-untracked | |
|
1047 | ||
|
1048 | ### revert for: missing_missing_content3-tracked | |
|
1049 | ||
|
1050 | ### revert for: content1_content2_content2-tracked | |
|
1051 | ||
|
1052 | ### revert for: content1_content2_missing-tracked | |
|
1053 | ||
|
1054 | ### revert for: content1_content2_content1-tracked | |
|
1055 | no changes needed to content1_content2_content1-tracked | |
|
1056 | ||
|
1057 | ### revert for: content1_content2_content2-untracked | |
|
1058 | ||
|
1059 | ### revert for: content1_content2_missing-untracked | |
|
1060 | ||
|
1061 | ### revert for: content1_content2_content1-untracked | |
|
1062 | ||
|
1063 | ### revert for: content1_content2_content3-untracked | |
|
1064 | ||
|
1065 | ### revert for: content1_content2_content3-tracked | |
|
1066 | ||
|
1067 | ### revert for: content1_missing_missing-tracked | |
|
1068 | ||
|
1069 | ### revert for: content1_missing_content1-tracked | |
|
1070 | no changes needed to content1_missing_content1-tracked | |
|
1071 | ||
|
1072 | ### revert for: content1_missing_missing-untracked | |
|
1073 | ||
|
1074 | ### revert for: content1_missing_content1-untracked | |
|
1075 | ||
|
1076 | ### revert for: content1_missing_content3-untracked | |
|
1077 | ||
|
1078 | ### revert for: content1_missing_content3-tracked | |
|
1079 | ||
|
1080 | 1083 | |
|
1081 | 1084 | check resulting directory against the --all run |
|
1082 | 1085 | (There should be no difference) |
General Comments 0
You need to be logged in to leave comments.
Login now