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