Show More
@@ -50,6 +50,8 revision 4 - hard to merge | |||
|
50 | 50 | > cat f |
|
51 | 51 | > echo "# hg stat" |
|
52 | 52 | > hg stat |
|
53 | > echo "# hg resolve --list" | |
|
54 | > hg resolve --list | |
|
53 | 55 | > rm -f f.orig |
|
54 | 56 | > } |
|
55 | 57 | |
@@ -82,6 +84,8 running from a devel copy, not a temp in | |||
|
82 | 84 | # hg stat |
|
83 | 85 | M f |
|
84 | 86 | ? f.orig |
|
87 | # hg resolve --list | |
|
88 | U f | |
|
85 | 89 | |
|
86 | 90 | simplest hgrc using false for merge: |
|
87 | 91 | |
@@ -103,6 +107,8 simplest hgrc using false for merge: | |||
|
103 | 107 | # hg stat |
|
104 | 108 | M f |
|
105 | 109 | ? f.orig |
|
110 | # hg resolve --list | |
|
111 | U f | |
|
106 | 112 | |
|
107 | 113 | #if unix-permissions |
|
108 | 114 | |
@@ -150,6 +156,8 true with higher .priority gets preceden | |||
|
150 | 156 | space |
|
151 | 157 | # hg stat |
|
152 | 158 | M f |
|
159 | # hg resolve --list | |
|
160 | R f | |
|
153 | 161 | |
|
154 | 162 | unless lowered on command line: |
|
155 | 163 | |
@@ -171,6 +179,8 unless lowered on command line: | |||
|
171 | 179 | # hg stat |
|
172 | 180 | M f |
|
173 | 181 | ? f.orig |
|
182 | # hg resolve --list | |
|
183 | U f | |
|
174 | 184 | |
|
175 | 185 | or false set higher on command line: |
|
176 | 186 | |
@@ -192,6 +202,8 or false set higher on command line: | |||
|
192 | 202 | # hg stat |
|
193 | 203 | M f |
|
194 | 204 | ? f.orig |
|
205 | # hg resolve --list | |
|
206 | U f | |
|
195 | 207 | |
|
196 | 208 | or true set to disabled: |
|
197 | 209 | $ beforemerge |
@@ -212,6 +224,8 or true set to disabled: | |||
|
212 | 224 | # hg stat |
|
213 | 225 | M f |
|
214 | 226 | ? f.orig |
|
227 | # hg resolve --list | |
|
228 | U f | |
|
215 | 229 | |
|
216 | 230 | or true.executable not found in PATH: |
|
217 | 231 | |
@@ -233,6 +247,8 or true.executable not found in PATH: | |||
|
233 | 247 | # hg stat |
|
234 | 248 | M f |
|
235 | 249 | ? f.orig |
|
250 | # hg resolve --list | |
|
251 | U f | |
|
236 | 252 | |
|
237 | 253 | or true.executable with bogus path: |
|
238 | 254 | |
@@ -254,6 +270,8 or true.executable with bogus path: | |||
|
254 | 270 | # hg stat |
|
255 | 271 | M f |
|
256 | 272 | ? f.orig |
|
273 | # hg resolve --list | |
|
274 | U f | |
|
257 | 275 | |
|
258 | 276 | but true.executable set to cat found in PATH works: |
|
259 | 277 | |
@@ -280,6 +298,8 but true.executable set to cat found in | |||
|
280 | 298 | space |
|
281 | 299 | # hg stat |
|
282 | 300 | M f |
|
301 | # hg resolve --list | |
|
302 | R f | |
|
283 | 303 | |
|
284 | 304 | and true.executable set to cat with path works: |
|
285 | 305 | |
@@ -305,6 +325,8 and true.executable set to cat with path | |||
|
305 | 325 | space |
|
306 | 326 | # hg stat |
|
307 | 327 | M f |
|
328 | # hg resolve --list | |
|
329 | R f | |
|
308 | 330 | |
|
309 | 331 | #if unix-permissions |
|
310 | 332 | |
@@ -330,6 +352,8 environment variables in true.executable | |||
|
330 | 352 | space |
|
331 | 353 | # hg stat |
|
332 | 354 | M f |
|
355 | # hg resolve --list | |
|
356 | R f | |
|
333 | 357 | |
|
334 | 358 | #endif |
|
335 | 359 | |
@@ -356,6 +380,8 merge-patterns specifies new tool false: | |||
|
356 | 380 | # hg stat |
|
357 | 381 | M f |
|
358 | 382 | ? f.orig |
|
383 | # hg resolve --list | |
|
384 | U f | |
|
359 | 385 | |
|
360 | 386 | merge-patterns specifies executable not found in PATH and gets warning: |
|
361 | 387 | |
@@ -380,6 +406,8 merge-patterns specifies executable not | |||
|
380 | 406 | # hg stat |
|
381 | 407 | M f |
|
382 | 408 | ? f.orig |
|
409 | # hg resolve --list | |
|
410 | U f | |
|
383 | 411 | |
|
384 | 412 | merge-patterns specifies executable with bogus path and gets warning: |
|
385 | 413 | |
@@ -404,6 +432,8 merge-patterns specifies executable with | |||
|
404 | 432 | # hg stat |
|
405 | 433 | M f |
|
406 | 434 | ? f.orig |
|
435 | # hg resolve --list | |
|
436 | U f | |
|
407 | 437 | |
|
408 | 438 | ui.merge overrules priority |
|
409 | 439 | |
@@ -428,6 +458,8 ui.merge specifies false: | |||
|
428 | 458 | # hg stat |
|
429 | 459 | M f |
|
430 | 460 | ? f.orig |
|
461 | # hg resolve --list | |
|
462 | U f | |
|
431 | 463 | |
|
432 | 464 | ui.merge specifies internal:fail: |
|
433 | 465 | |
@@ -447,6 +479,8 ui.merge specifies internal:fail: | |||
|
447 | 479 | space |
|
448 | 480 | # hg stat |
|
449 | 481 | M f |
|
482 | # hg resolve --list | |
|
483 | U f | |
|
450 | 484 | |
|
451 | 485 | ui.merge specifies :local (without internal prefix): |
|
452 | 486 | |
@@ -465,6 +499,8 ui.merge specifies :local (without inter | |||
|
465 | 499 | space |
|
466 | 500 | # hg stat |
|
467 | 501 | M f |
|
502 | # hg resolve --list | |
|
503 | R f | |
|
468 | 504 | |
|
469 | 505 | ui.merge specifies internal:other: |
|
470 | 506 | |
@@ -483,6 +519,8 ui.merge specifies internal:other: | |||
|
483 | 519 | space |
|
484 | 520 | # hg stat |
|
485 | 521 | M f |
|
522 | # hg resolve --list | |
|
523 | R f | |
|
486 | 524 | |
|
487 | 525 | ui.merge specifies internal:prompt: |
|
488 | 526 | |
@@ -503,6 +541,8 ui.merge specifies internal:prompt: | |||
|
503 | 541 | space |
|
504 | 542 | # hg stat |
|
505 | 543 | M f |
|
544 | # hg resolve --list | |
|
545 | R f | |
|
506 | 546 | |
|
507 | 547 | ui.merge specifies internal:dump: |
|
508 | 548 | |
@@ -527,6 +567,8 ui.merge specifies internal:dump: | |||
|
527 | 567 | ? f.local |
|
528 | 568 | ? f.orig |
|
529 | 569 | ? f.other |
|
570 | # hg resolve --list | |
|
571 | U f | |
|
530 | 572 | |
|
531 | 573 | f.base: |
|
532 | 574 | |
@@ -568,6 +610,8 ui.merge specifies internal:other but is | |||
|
568 | 610 | # hg stat |
|
569 | 611 | M f |
|
570 | 612 | ? f.orig |
|
613 | # hg resolve --list | |
|
614 | U f | |
|
571 | 615 | |
|
572 | 616 | Premerge |
|
573 | 617 | |
@@ -592,6 +636,8 ui.merge specifies internal:other but is | |||
|
592 | 636 | # hg stat |
|
593 | 637 | M f |
|
594 | 638 | ? f.orig |
|
639 | # hg resolve --list | |
|
640 | U f | |
|
595 | 641 | |
|
596 | 642 | HGMERGE specifies internal:other but is overruled by --tool=false |
|
597 | 643 | |
@@ -615,6 +661,8 HGMERGE specifies internal:other but is | |||
|
615 | 661 | # hg stat |
|
616 | 662 | M f |
|
617 | 663 | ? f.orig |
|
664 | # hg resolve --list | |
|
665 | U f | |
|
618 | 666 | |
|
619 | 667 | $ unset HGMERGE # make sure HGMERGE doesn't interfere with remaining tests |
|
620 | 668 | |
@@ -671,6 +719,8 changed on the filesystem (see also issu | |||
|
671 | 719 | space |
|
672 | 720 | # hg stat |
|
673 | 721 | M f |
|
722 | # hg resolve --list | |
|
723 | R f | |
|
674 | 724 | |
|
675 | 725 | update should also have --tool |
|
676 | 726 | |
@@ -712,6 +762,8 update should also have --tool | |||
|
712 | 762 | # hg stat |
|
713 | 763 | M f |
|
714 | 764 | ? f.orig |
|
765 | # hg resolve --list | |
|
766 | U f | |
|
715 | 767 | |
|
716 | 768 | Default is silent simplemerge: |
|
717 | 769 | |
@@ -732,6 +784,8 Default is silent simplemerge: | |||
|
732 | 784 | revision 3 |
|
733 | 785 | # hg stat |
|
734 | 786 | M f |
|
787 | # hg resolve --list | |
|
788 | R f | |
|
735 | 789 | |
|
736 | 790 | .premerge=True is same: |
|
737 | 791 | |
@@ -752,6 +806,8 Default is silent simplemerge: | |||
|
752 | 806 | revision 3 |
|
753 | 807 | # hg stat |
|
754 | 808 | M f |
|
809 | # hg resolve --list | |
|
810 | R f | |
|
755 | 811 | |
|
756 | 812 | .premerge=False executes merge-tool: |
|
757 | 813 | |
@@ -778,6 +834,8 Default is silent simplemerge: | |||
|
778 | 834 | space |
|
779 | 835 | # hg stat |
|
780 | 836 | M f |
|
837 | # hg resolve --list | |
|
838 | R f | |
|
781 | 839 | |
|
782 | 840 | premerge=keep keeps conflict markers in: |
|
783 | 841 | |
@@ -810,6 +868,8 premerge=keep keeps conflict markers in: | |||
|
810 | 868 | >>>>>>> other: 81448d39c9a0 - test: revision 4 |
|
811 | 869 | # hg stat |
|
812 | 870 | M f |
|
871 | # hg resolve --list | |
|
872 | R f | |
|
813 | 873 | |
|
814 | 874 | premerge=keep-merge3 keeps conflict markers with base content: |
|
815 | 875 | |
@@ -848,6 +908,8 premerge=keep-merge3 keeps conflict mark | |||
|
848 | 908 | >>>>>>> other: 81448d39c9a0 - test: revision 4 |
|
849 | 909 | # hg stat |
|
850 | 910 | M f |
|
911 | # hg resolve --list | |
|
912 | R f | |
|
851 | 913 | |
|
852 | 914 | |
|
853 | 915 | Tool execution |
@@ -886,6 +948,8 set tools.args explicit to include $base | |||
|
886 | 948 | space |
|
887 | 949 | # hg stat |
|
888 | 950 | M f |
|
951 | # hg resolve --list | |
|
952 | R f | |
|
889 | 953 | |
|
890 | 954 | Merge with "echo mergeresult > $local": |
|
891 | 955 | |
@@ -904,6 +968,8 Merge with "echo mergeresult > $local": | |||
|
904 | 968 | mergeresult |
|
905 | 969 | # hg stat |
|
906 | 970 | M f |
|
971 | # hg resolve --list | |
|
972 | R f | |
|
907 | 973 | |
|
908 | 974 | - and $local is the file f: |
|
909 | 975 | |
@@ -922,6 +988,8 Merge with "echo mergeresult > $local": | |||
|
922 | 988 | mergeresult |
|
923 | 989 | # hg stat |
|
924 | 990 | M f |
|
991 | # hg resolve --list | |
|
992 | R f | |
|
925 | 993 | |
|
926 | 994 | Merge with "echo mergeresult > $output" - the variable is a bit magic: |
|
927 | 995 | |
@@ -940,6 +1008,8 Merge with "echo mergeresult > $output" | |||
|
940 | 1008 | mergeresult |
|
941 | 1009 | # hg stat |
|
942 | 1010 | M f |
|
1011 | # hg resolve --list | |
|
1012 | R f | |
|
943 | 1013 | |
|
944 | 1014 | Merge using tool with a path that must be quoted: |
|
945 | 1015 | |
@@ -969,6 +1039,8 Merge using tool with a path that must b | |||
|
969 | 1039 | space |
|
970 | 1040 | # hg stat |
|
971 | 1041 | M f |
|
1042 | # hg resolve --list | |
|
1043 | R f | |
|
972 | 1044 | |
|
973 | 1045 | Issue3581: Merging a filename that needs to be quoted |
|
974 | 1046 | (This test doesn't work on Windows filesystems even on Linux, so check |
@@ -1029,6 +1101,8 cat is a bad merge-tool and doesn't chan | |||
|
1029 | 1101 | # hg stat |
|
1030 | 1102 | M f |
|
1031 | 1103 | ? f.orig |
|
1104 | # hg resolve --list | |
|
1105 | U f | |
|
1032 | 1106 | |
|
1033 | 1107 | #if symlink |
|
1034 | 1108 |
General Comments 0
You need to be logged in to leave comments.
Login now