##// END OF EJS Templates
merge: add conflict labels to merge command...
Simon Farnsworth -
r30062:940c05b2 default
parent child Browse files
Show More
@@ -5532,7 +5532,9 b' def merge(ui, repo, node=None, **opts):'
5532 5532 # ui.forcemerge is an internal variable, do not document
5533 5533 repo.ui.setconfig('ui', 'forcemerge', opts.get('tool', ''), 'merge')
5534 5534 force = opts.get('force')
5535 return hg.merge(repo, node, force=force, mergeforce=force)
5535 labels = ['working copy', 'merge rev']
5536 return hg.merge(repo, node, force=force, mergeforce=force,
5537 labels=labels)
5536 5538 finally:
5537 5539 ui.setconfig('ui', 'forcemerge', '', 'merge')
5538 5540
@@ -768,10 +768,11 b' def updatetotally(ui, repo, checkout, br'
768 768
769 769 return ret
770 770
771 def merge(repo, node, force=None, remind=True, mergeforce=False):
771 def merge(repo, node, force=None, remind=True, mergeforce=False, labels=None):
772 772 """Branch merge with node, resolving changes. Return true if any
773 773 unresolved conflicts."""
774 stats = mergemod.update(repo, node, True, force, mergeforce=mergeforce)
774 stats = mergemod.update(repo, node, True, force, mergeforce=mergeforce,
775 labels=labels)
775 776 _showstats(repo, stats)
776 777 if stats[3]:
777 778 repo.ui.status(_("use 'hg resolve' to retry unresolved file merges "
@@ -638,7 +638,7 b' Amend a merge changeset (with renames an'
638 638 (no more unresolved files)
639 639 $ hg ci -m 'merge bar'
640 640 $ hg log --config diff.git=1 -pr .
641 changeset: 23:93cd4445f720
641 changeset: 23:69c24fe01e35
642 642 tag: tip
643 643 parent: 22:30d96aeaf27b
644 644 parent: 21:1aa437659d19
@@ -653,11 +653,11 b' Amend a merge changeset (with renames an'
653 653 --- a/cc
654 654 +++ b/cc
655 655 @@ -1,1 +1,5 @@
656 +<<<<<<< local: 30d96aeaf27b - test: aa
656 +<<<<<<< working copy: 30d96aeaf27b - test: aa
657 657 dd
658 658 +=======
659 659 +cc
660 +>>>>>>> other: 1aa437659d19 bar - test: aazzcc
660 +>>>>>>> merge rev: 1aa437659d19 bar - test: aazzcc
661 661 diff --git a/z b/zz
662 662 rename from z
663 663 rename to zz
@@ -671,7 +671,7 b' Amend a merge changeset (with renames an'
671 671 $ HGEDITOR="sh .hg/checkeditform.sh" hg ci --amend -m 'merge bar (amend message)' --edit
672 672 HGEDITFORM=commit.amend.merge
673 673 $ hg log --config diff.git=1 -pr .
674 changeset: 24:832b50f2c271
674 changeset: 24:cfa2fbef3169
675 675 tag: tip
676 676 parent: 22:30d96aeaf27b
677 677 parent: 21:1aa437659d19
@@ -686,11 +686,11 b' Amend a merge changeset (with renames an'
686 686 --- a/cc
687 687 +++ b/cc
688 688 @@ -1,1 +1,5 @@
689 +<<<<<<< local: 30d96aeaf27b - test: aa
689 +<<<<<<< working copy: 30d96aeaf27b - test: aa
690 690 dd
691 691 +=======
692 692 +cc
693 +>>>>>>> other: 1aa437659d19 bar - test: aazzcc
693 +>>>>>>> merge rev: 1aa437659d19 bar - test: aazzcc
694 694 diff --git a/z b/zz
695 695 rename from z
696 696 rename to zz
@@ -704,7 +704,7 b' Amend a merge changeset (with renames an'
704 704 $ hg mv zz z
705 705 $ hg ci --amend -m 'merge bar (undo rename)'
706 706 $ hg log --config diff.git=1 -pr .
707 changeset: 26:bdafc5c72f74
707 changeset: 26:c34de68b014c
708 708 tag: tip
709 709 parent: 22:30d96aeaf27b
710 710 parent: 21:1aa437659d19
@@ -719,11 +719,11 b' Amend a merge changeset (with renames an'
719 719 --- a/cc
720 720 +++ b/cc
721 721 @@ -1,1 +1,5 @@
722 +<<<<<<< local: 30d96aeaf27b - test: aa
722 +<<<<<<< working copy: 30d96aeaf27b - test: aa
723 723 dd
724 724 +=======
725 725 +cc
726 +>>>>>>> other: 1aa437659d19 bar - test: aazzcc
726 +>>>>>>> merge rev: 1aa437659d19 bar - test: aazzcc
727 727
728 728 $ hg debugrename z
729 729 z not renamed
@@ -740,9 +740,9 b' Amend a merge changeset (with renames du'
740 740 $ echo aa >> aaa
741 741 $ hg ci -m 'merge bar again'
742 742 $ hg log --config diff.git=1 -pr .
743 changeset: 28:32f19415b634
743 changeset: 28:37d40dcef03b
744 744 tag: tip
745 parent: 26:bdafc5c72f74
745 parent: 26:c34de68b014c
746 746 parent: 27:4c94d5bc65f5
747 747 user: test
748 748 date: Thu Jan 01 00:00:00 1970 +0000
@@ -775,9 +775,9 b' Amend a merge changeset (with renames du'
775 775 $ hg mv aaa aa
776 776 $ hg ci --amend -m 'merge bar again (undo rename)'
777 777 $ hg log --config diff.git=1 -pr .
778 changeset: 30:1e2a06b3d312
778 changeset: 30:537c6d1b3633
779 779 tag: tip
780 parent: 26:bdafc5c72f74
780 parent: 26:c34de68b014c
781 781 parent: 27:4c94d5bc65f5
782 782 user: test
783 783 date: Thu Jan 01 00:00:00 1970 +0000
@@ -813,13 +813,13 b' Amend a merge changeset (with manifest-l'
813 813 $ hg merge -q bar --config ui.interactive=True << EOF
814 814 > c
815 815 > EOF
816 local changed aa which other deleted
816 local [working copy] changed aa which other [merge rev] deleted
817 817 use (c)hanged version, (d)elete, or leave (u)nresolved? c
818 818 $ hg ci -m 'merge bar (with conflicts)'
819 819 $ hg log --config diff.git=1 -pr .
820 changeset: 33:97a298b0c59f
820 changeset: 33:7afcba911942
821 821 tag: tip
822 parent: 32:3d78ce4226b8
822 parent: 32:6075d69d215d
823 823 parent: 31:67db8847a540
824 824 user: test
825 825 date: Thu Jan 01 00:00:00 1970 +0000
@@ -829,9 +829,9 b' Amend a merge changeset (with manifest-l'
829 829 $ hg rm aa
830 830 $ hg ci --amend -m 'merge bar (with conflicts, amended)'
831 831 $ hg log --config diff.git=1 -pr .
832 changeset: 35:6de0c1bde1c8
832 changeset: 35:376965e47ddd
833 833 tag: tip
834 parent: 32:3d78ce4226b8
834 parent: 32:6075d69d215d
835 835 parent: 31:67db8847a540
836 836 user: test
837 837 date: Thu Jan 01 00:00:00 1970 +0000
@@ -927,7 +927,7 b' Test that "diff()" in committemplate wor'
927 927 HG: M:
928 928 HG: A: foo
929 929 HG: R:
930 HG: diff -r 6de0c1bde1c8 foo
930 HG: diff -r 376965e47ddd foo
931 931 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
932 932 HG: +++ b/foo Thu Jan 01 00:00:00 1970 +0000
933 933 HG: @@ -0,0 +1,1 @@
@@ -941,12 +941,12 b' Test that "diff()" in committemplate wor'
941 941 HG: M:
942 942 HG: A: foo y
943 943 HG: R:
944 HG: diff -r 6de0c1bde1c8 foo
944 HG: diff -r 376965e47ddd foo
945 945 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
946 946 HG: +++ b/foo Thu Jan 01 00:00:00 1970 +0000
947 947 HG: @@ -0,0 +1,1 @@
948 948 HG: +foo
949 HG: diff -r 6de0c1bde1c8 y
949 HG: diff -r 376965e47ddd y
950 950 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
951 951 HG: +++ b/y Thu Jan 01 00:00:00 1970 +0000
952 952 HG: @@ -0,0 +1,1 @@
@@ -959,18 +959,18 b' Test that "diff()" in committemplate wor'
959 959 HG: M:
960 960 HG: A: foo y
961 961 HG: R: a
962 HG: diff -r 6de0c1bde1c8 a
962 HG: diff -r 376965e47ddd a
963 963 HG: --- a/a Thu Jan 01 00:00:00 1970 +0000
964 964 HG: +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
965 965 HG: @@ -1,2 +0,0 @@
966 966 HG: -a
967 967 HG: -a
968 HG: diff -r 6de0c1bde1c8 foo
968 HG: diff -r 376965e47ddd foo
969 969 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
970 970 HG: +++ b/foo Thu Jan 01 00:00:00 1970 +0000
971 971 HG: @@ -0,0 +1,1 @@
972 972 HG: +foo
973 HG: diff -r 6de0c1bde1c8 y
973 HG: diff -r 376965e47ddd y
974 974 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
975 975 HG: +++ b/y Thu Jan 01 00:00:00 1970 +0000
976 976 HG: @@ -0,0 +1,1 @@
@@ -983,23 +983,23 b' Test that "diff()" in committemplate wor'
983 983 HG: M:
984 984 HG: A: foo y
985 985 HG: R: a x
986 HG: diff -r 6de0c1bde1c8 a
986 HG: diff -r 376965e47ddd a
987 987 HG: --- a/a Thu Jan 01 00:00:00 1970 +0000
988 988 HG: +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
989 989 HG: @@ -1,2 +0,0 @@
990 990 HG: -a
991 991 HG: -a
992 HG: diff -r 6de0c1bde1c8 foo
992 HG: diff -r 376965e47ddd foo
993 993 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
994 994 HG: +++ b/foo Thu Jan 01 00:00:00 1970 +0000
995 995 HG: @@ -0,0 +1,1 @@
996 996 HG: +foo
997 HG: diff -r 6de0c1bde1c8 x
997 HG: diff -r 376965e47ddd x
998 998 HG: --- a/x Thu Jan 01 00:00:00 1970 +0000
999 999 HG: +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1000 1000 HG: @@ -1,1 +0,0 @@
1001 1001 HG: -x
1002 HG: diff -r 6de0c1bde1c8 y
1002 HG: diff -r 376965e47ddd y
1003 1003 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1004 1004 HG: +++ b/y Thu Jan 01 00:00:00 1970 +0000
1005 1005 HG: @@ -0,0 +1,1 @@
@@ -1014,23 +1014,23 b' Test that "diff()" in committemplate wor'
1014 1014 HG: M:
1015 1015 HG: A: foo y
1016 1016 HG: R: a x
1017 HG: diff -r 6de0c1bde1c8 a
1017 HG: diff -r 376965e47ddd a
1018 1018 HG: --- a/a Thu Jan 01 00:00:00 1970 +0000
1019 1019 HG: +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1020 1020 HG: @@ -1,2 +0,0 @@
1021 1021 HG: -a
1022 1022 HG: -a
1023 HG: diff -r 6de0c1bde1c8 foo
1023 HG: diff -r 376965e47ddd foo
1024 1024 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1025 1025 HG: +++ b/foo Thu Jan 01 00:00:00 1970 +0000
1026 1026 HG: @@ -0,0 +1,1 @@
1027 1027 HG: +foo
1028 HG: diff -r 6de0c1bde1c8 x
1028 HG: diff -r 376965e47ddd x
1029 1029 HG: --- a/x Thu Jan 01 00:00:00 1970 +0000
1030 1030 HG: +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1031 1031 HG: @@ -1,1 +0,0 @@
1032 1032 HG: -x
1033 HG: diff -r 6de0c1bde1c8 y
1033 HG: diff -r 376965e47ddd y
1034 1034 HG: --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1035 1035 HG: +++ b/y Thu Jan 01 00:00:00 1970 +0000
1036 1036 HG: @@ -0,0 +1,1 @@
@@ -49,13 +49,13 b''
49 49 1
50 50 2
51 51 3
52 <<<<<<< local: 618808747361 - test: branch2
52 <<<<<<< working copy: 618808747361 - test: branch2
53 53 6
54 54 8
55 55 =======
56 56 4
57 57 5
58 >>>>>>> other: c0c68e4fe667 - test: branch1
58 >>>>>>> merge rev: c0c68e4fe667 - test: branch1
59 59 Hop we are done.
60 60
61 61 $ hg status
@@ -79,13 +79,13 b' Verify custom conflict markers'
79 79 1
80 80 2
81 81 3
82 <<<<<<< local: test 2
82 <<<<<<< working copy: test 2
83 83 6
84 84 8
85 85 =======
86 86 4
87 87 5
88 >>>>>>> other: test 1
88 >>>>>>> merge rev: test 1
89 89 Hop we are done.
90 90
91 91 Verify line splitting of custom conflict marker which causes multiple lines
@@ -105,13 +105,13 b' Verify line splitting of custom conflict'
105 105 1
106 106 2
107 107 3
108 <<<<<<< local: test 2
108 <<<<<<< working copy: test 2
109 109 6
110 110 8
111 111 =======
112 112 4
113 113 5
114 >>>>>>> other: test 1
114 >>>>>>> merge rev: test 1
115 115 Hop we are done.
116 116
117 117 Verify line trimming of custom conflict marker using multi-byte characters
@@ -144,13 +144,13 b' Verify line trimming of custom conflict '
144 144 1
145 145 2
146 146 3
147 <<<<<<< local: 123456789012345678901234567890123456789012345678901234567890\xe3\x81\x82... (esc)
147 <<<<<<< working copy: 1234567890123456789012345678901234567890123456789012345...
148 148 6
149 149 8
150 150 =======
151 151 4
152 152 5
153 >>>>>>> other: branch1
153 >>>>>>> merge rev: branch1
154 154 Hop we are done.
155 155
156 156 Verify basic conflict markers
@@ -170,13 +170,13 b' Verify basic conflict markers'
170 170 1
171 171 2
172 172 3
173 <<<<<<< local
173 <<<<<<< working copy
174 174 6
175 175 8
176 176 =======
177 177 4
178 178 5
179 >>>>>>> other
179 >>>>>>> merge rev
180 180 Hop we are done.
181 181
182 182 internal:merge3
@@ -191,7 +191,7 b' internal:merge3'
191 191 [1]
192 192 $ cat a
193 193 Small Mathematical Series.
194 <<<<<<< local
194 <<<<<<< working copy
195 195 1
196 196 2
197 197 3
@@ -209,7 +209,7 b' internal:merge3'
209 209 3
210 210 4
211 211 5
212 >>>>>>> other
212 >>>>>>> merge rev
213 213 Hop we are done.
214 214
215 215 Add some unconflicting changes on each head, to make sure we really
@@ -1113,11 +1113,11 b' conflict: keyword should stay outside co'
1113 1113 [1]
1114 1114 $ cat m
1115 1115 $Id$
1116 <<<<<<< local: 88a80c8d172e - test: 8bar
1116 <<<<<<< working copy: 88a80c8d172e - test: 8bar
1117 1117 bar
1118 1118 =======
1119 1119 foo
1120 >>>>>>> other: 85d2d2d732a5 - test: simplemerge
1120 >>>>>>> merge rev: 85d2d2d732a5 - test: simplemerge
1121 1121
1122 1122 resolve to local, m must contain hash of last change (local parent)
1123 1123
@@ -54,9 +54,9 b" Make sure HGMERGE doesn't interfere with"
54 54 Non-interactive merge:
55 55
56 56 $ hg merge -y
57 local changed file1 which other deleted
57 local [working copy] changed file1 which other [merge rev] deleted
58 58 use (c)hanged version, (d)elete, or leave (u)nresolved? u
59 other changed file2 which local deleted
59 other [merge rev] changed file2 which local [working copy] deleted
60 60 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
61 61 merging file3
62 62 warning: conflicts while merging file3! (edit, then use 'hg resolve --mark')
@@ -77,6 +77,9 b' Non-interactive merge:'
77 77 * version 2 records
78 78 local: 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
79 79 other: 10f9a0a634e82080907e62f075ab119cbc565ea6
80 labels:
81 local: working copy
82 other: merge rev
80 83 file extras: file1 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
81 84 file: file1 (record type "C", state "u", hash 60b27f004e454aca81b0480209cce5081ec52390)
82 85 local path: file1 (flags "")
@@ -100,11 +103,11 b' Non-interactive merge:'
100 103 changed
101 104 --- file3 ---
102 105 3
103 <<<<<<< local: 13910f48cf7b - test: changed file1, removed file2, changed file3
106 <<<<<<< working copy: 13910f48cf7b - test: changed file1, removed file2, chan...
104 107 changed2
105 108 =======
106 109 changed1
107 >>>>>>> other: 10f9a0a634e8 - test: removed file1, changed file2, changed file3
110 >>>>>>> merge rev: 10f9a0a634e8 - test: removed file1, changed file2, cha...
108 111
109 112
110 113 Interactive merge:
@@ -117,9 +120,9 b' Interactive merge:'
117 120 > c
118 121 > d
119 122 > EOF
120 local changed file1 which other deleted
123 local [working copy] changed file1 which other [merge rev] deleted
121 124 use (c)hanged version, (d)elete, or leave (u)nresolved? c
122 other changed file2 which local deleted
125 other [merge rev] changed file2 which local [working copy] deleted
123 126 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? d
124 127 merging file3
125 128 warning: conflicts while merging file3! (edit, then use 'hg resolve --mark')
@@ -140,6 +143,9 b' Interactive merge:'
140 143 * version 2 records
141 144 local: 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
142 145 other: 10f9a0a634e82080907e62f075ab119cbc565ea6
146 labels:
147 local: working copy
148 other: merge rev
143 149 file extras: file1 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
144 150 file: file1 (record type "C", state "r", hash 60b27f004e454aca81b0480209cce5081ec52390)
145 151 local path: file1 (flags "")
@@ -161,11 +167,11 b' Interactive merge:'
161 167 *** file2 does not exist
162 168 --- file3 ---
163 169 3
164 <<<<<<< local: 13910f48cf7b - test: changed file1, removed file2, changed file3
170 <<<<<<< working copy: 13910f48cf7b - test: changed file1, removed file2, chan...
165 171 changed2
166 172 =======
167 173 changed1
168 >>>>>>> other: 10f9a0a634e8 - test: removed file1, changed file2, changed file3
174 >>>>>>> merge rev: 10f9a0a634e8 - test: removed file1, changed file2, cha...
169 175
170 176
171 177 Interactive merge with bad input:
@@ -181,18 +187,18 b' Interactive merge with bad input:'
181 187 > baz
182 188 > c
183 189 > EOF
184 local changed file1 which other deleted
190 local [working copy] changed file1 which other [merge rev] deleted
185 191 use (c)hanged version, (d)elete, or leave (u)nresolved? foo
186 192 unrecognized response
187 local changed file1 which other deleted
193 local [working copy] changed file1 which other [merge rev] deleted
188 194 use (c)hanged version, (d)elete, or leave (u)nresolved? bar
189 195 unrecognized response
190 local changed file1 which other deleted
196 local [working copy] changed file1 which other [merge rev] deleted
191 197 use (c)hanged version, (d)elete, or leave (u)nresolved? d
192 other changed file2 which local deleted
198 other [merge rev] changed file2 which local [working copy] deleted
193 199 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? baz
194 200 unrecognized response
195 other changed file2 which local deleted
201 other [merge rev] changed file2 which local [working copy] deleted
196 202 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? c
197 203 merging file3
198 204 warning: conflicts while merging file3! (edit, then use 'hg resolve --mark')
@@ -213,6 +219,9 b' Interactive merge with bad input:'
213 219 * version 2 records
214 220 local: 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
215 221 other: 10f9a0a634e82080907e62f075ab119cbc565ea6
222 labels:
223 local: working copy
224 other: merge rev
216 225 file extras: file1 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
217 226 file: file1 (record type "C", state "r", hash 60b27f004e454aca81b0480209cce5081ec52390)
218 227 local path: file1 (flags "")
@@ -234,11 +243,11 b' Interactive merge with bad input:'
234 243 changed
235 244 --- file3 ---
236 245 3
237 <<<<<<< local: 13910f48cf7b - test: changed file1, removed file2, changed file3
246 <<<<<<< working copy: 13910f48cf7b - test: changed file1, removed file2, chan...
238 247 changed2
239 248 =======
240 249 changed1
241 >>>>>>> other: 10f9a0a634e8 - test: removed file1, changed file2, changed file3
250 >>>>>>> merge rev: 10f9a0a634e8 - test: removed file1, changed file2, cha...
242 251
243 252
244 253 Interactive merge with not enough input:
@@ -250,9 +259,9 b' Interactive merge with not enough input:'
250 259 $ hg merge --config ui.interactive=true <<EOF
251 260 > d
252 261 > EOF
253 local changed file1 which other deleted
262 local [working copy] changed file1 which other [merge rev] deleted
254 263 use (c)hanged version, (d)elete, or leave (u)nresolved? d
255 other changed file2 which local deleted
264 other [merge rev] changed file2 which local [working copy] deleted
256 265 use (c)hanged version, leave (d)eleted, or leave (u)nresolved?
257 266 merging file3
258 267 warning: conflicts while merging file3! (edit, then use 'hg resolve --mark')
@@ -273,6 +282,9 b' Interactive merge with not enough input:'
273 282 * version 2 records
274 283 local: 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
275 284 other: 10f9a0a634e82080907e62f075ab119cbc565ea6
285 labels:
286 local: working copy
287 other: merge rev
276 288 file extras: file1 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
277 289 file: file1 (record type "C", state "r", hash 60b27f004e454aca81b0480209cce5081ec52390)
278 290 local path: file1 (flags "")
@@ -294,11 +306,11 b' Interactive merge with not enough input:'
294 306 changed
295 307 --- file3 ---
296 308 3
297 <<<<<<< local: 13910f48cf7b - test: changed file1, removed file2, changed file3
309 <<<<<<< working copy: 13910f48cf7b - test: changed file1, removed file2, chan...
298 310 changed2
299 311 =======
300 312 changed1
301 >>>>>>> other: 10f9a0a634e8 - test: removed file1, changed file2, changed file3
313 >>>>>>> merge rev: 10f9a0a634e8 - test: removed file1, changed file2, cha...
302 314
303 315 Choose local versions of files
304 316
@@ -322,6 +334,9 b' Choose local versions of files'
322 334 * version 2 records
323 335 local: 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
324 336 other: 10f9a0a634e82080907e62f075ab119cbc565ea6
337 labels:
338 local: working copy
339 other: merge rev
325 340 file extras: file1 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
326 341 file: file1 (record type "C", state "r", hash 60b27f004e454aca81b0480209cce5081ec52390)
327 342 local path: file1 (flags "")
@@ -367,6 +382,9 b' Choose other versions of files'
367 382 * version 2 records
368 383 local: 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
369 384 other: 10f9a0a634e82080907e62f075ab119cbc565ea6
385 labels:
386 local: working copy
387 other: merge rev
370 388 file extras: file1 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
371 389 file: file1 (record type "C", state "r", hash 60b27f004e454aca81b0480209cce5081ec52390)
372 390 local path: file1 (flags "")
@@ -413,6 +431,9 b' Fail'
413 431 * version 2 records
414 432 local: 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
415 433 other: 10f9a0a634e82080907e62f075ab119cbc565ea6
434 labels:
435 local: working copy
436 other: merge rev
416 437 file extras: file1 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
417 438 file: file1 (record type "C", state "u", hash 60b27f004e454aca81b0480209cce5081ec52390)
418 439 local path: file1 (flags "")
@@ -445,12 +466,12 b' Force prompts with no input (should be s'
445 466 1 other heads for branch "default"
446 467
447 468 $ hg merge --config ui.interactive=True --tool :prompt
448 local changed file1 which other deleted
469 local [working copy] changed file1 which other [merge rev] deleted
449 470 use (c)hanged version, (d)elete, or leave (u)nresolved?
450 other changed file2 which local deleted
471 other [merge rev] changed file2 which local [working copy] deleted
451 472 use (c)hanged version, leave (d)eleted, or leave (u)nresolved?
452 473 no tool found to merge file3
453 keep (l)ocal, take (o)ther, or leave (u)nresolved?
474 keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved?
454 475 0 files updated, 0 files merged, 0 files removed, 3 files unresolved
455 476 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
456 477 [1]
@@ -467,6 +488,9 b' Force prompts with no input (should be s'
467 488 * version 2 records
468 489 local: 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
469 490 other: 10f9a0a634e82080907e62f075ab119cbc565ea6
491 labels:
492 local: working copy
493 other: merge rev
470 494 file extras: file1 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
471 495 file: file1 (record type "C", state "u", hash 60b27f004e454aca81b0480209cce5081ec52390)
472 496 local path: file1 (flags "")
@@ -501,12 +525,12 b' Force prompts'
501 525 1 other heads for branch "default"
502 526
503 527 $ hg merge --tool :prompt
504 local changed file1 which other deleted
528 local [working copy] changed file1 which other [merge rev] deleted
505 529 use (c)hanged version, (d)elete, or leave (u)nresolved? u
506 other changed file2 which local deleted
530 other [merge rev] changed file2 which local [working copy] deleted
507 531 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
508 532 no tool found to merge file3
509 keep (l)ocal, take (o)ther, or leave (u)nresolved? u
533 keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved? u
510 534 0 files updated, 0 files merged, 0 files removed, 3 files unresolved
511 535 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
512 536 [1]
@@ -523,6 +547,9 b' Force prompts'
523 547 * version 2 records
524 548 local: 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
525 549 other: 10f9a0a634e82080907e62f075ab119cbc565ea6
550 labels:
551 local: working copy
552 other: merge rev
526 553 file extras: file1 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
527 554 file: file1 (record type "C", state "u", hash 60b27f004e454aca81b0480209cce5081ec52390)
528 555 local path: file1 (flags "")
@@ -555,9 +582,9 b' Choose to merge all files'
555 582 1 other heads for branch "default"
556 583
557 584 $ hg merge --tool :merge3
558 local changed file1 which other deleted
585 local [working copy] changed file1 which other [merge rev] deleted
559 586 use (c)hanged version, (d)elete, or leave (u)nresolved? u
560 other changed file2 which local deleted
587 other [merge rev] changed file2 which local [working copy] deleted
561 588 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
562 589 merging file3
563 590 warning: conflicts while merging file3! (edit, then use 'hg resolve --mark')
@@ -577,6 +604,9 b' Choose to merge all files'
577 604 * version 2 records
578 605 local: 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
579 606 other: 10f9a0a634e82080907e62f075ab119cbc565ea6
607 labels:
608 local: working copy
609 other: merge rev
580 610 file extras: file1 (ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff)
581 611 file: file1 (record type "C", state "u", hash 60b27f004e454aca81b0480209cce5081ec52390)
582 612 local path: file1 (flags "")
@@ -600,12 +630,12 b' Choose to merge all files'
600 630 changed
601 631 --- file3 ---
602 632 3
603 <<<<<<< local: 13910f48cf7b - test: changed file1, removed file2, changed file3
633 <<<<<<< working copy: 13910f48cf7b - test: changed file1, removed file2, chan...
604 634 changed2
605 635 ||||||| base
606 636 =======
607 637 changed1
608 >>>>>>> other: 10f9a0a634e8 - test: removed file1, changed file2, changed file3
638 >>>>>>> merge rev: 10f9a0a634e8 - test: removed file1, changed file2, cha...
609 639
610 640 Exercise transitions between local, other, fail and prompt, and make sure the
611 641 dirstate stays consistent. (Compare with each other and to the above
@@ -642,12 +672,12 b' invocations.)'
642 672 (status identical)
643 673
644 674 === :other -> :prompt ===
645 local changed file1 which other deleted
675 local [working copy] changed file1 which other [merge rev] deleted
646 676 use (c)hanged version, (d)elete, or leave (u)nresolved?
647 other changed file2 which local deleted
677 other [merge rev] changed file2 which local [working copy] deleted
648 678 use (c)hanged version, leave (d)eleted, or leave (u)nresolved?
649 679 no tool found to merge file3
650 keep (l)ocal, take (o)ther, or leave (u)nresolved?
680 keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved?
651 681 --- diff of status ---
652 682 (status identical)
653 683
@@ -671,12 +701,12 b' invocations.)'
671 701 (status identical)
672 702
673 703 === :local -> :prompt ===
674 local changed file1 which other deleted
704 local [working copy] changed file1 which other [merge rev] deleted
675 705 use (c)hanged version, (d)elete, or leave (u)nresolved?
676 other changed file2 which local deleted
706 other [merge rev] changed file2 which local [working copy] deleted
677 707 use (c)hanged version, leave (d)eleted, or leave (u)nresolved?
678 708 no tool found to merge file3
679 keep (l)ocal, take (o)ther, or leave (u)nresolved?
709 keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved?
680 710 --- diff of status ---
681 711 (status identical)
682 712
@@ -690,12 +720,12 b' invocations.)'
690 720 (status identical)
691 721
692 722 === :fail -> :prompt ===
693 local changed file1 which other deleted
723 local [working copy] changed file1 which other [merge rev] deleted
694 724 use (c)hanged version, (d)elete, or leave (u)nresolved?
695 other changed file2 which local deleted
725 other [merge rev] changed file2 which local [working copy] deleted
696 726 use (c)hanged version, leave (d)eleted, or leave (u)nresolved?
697 727 no tool found to merge file3
698 keep (l)ocal, take (o)ther, or leave (u)nresolved?
728 keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved?
699 729 --- diff of status ---
700 730 (status identical)
701 731
@@ -142,55 +142,55 b' Merge with remote'
142 142 # in the same way, so it could potentially be left alone
143 143
144 144 $ hg merge -f --tool internal:merge3 'desc("remote")' 2>&1 | tee $TESTTMP/merge-output-1
145 local changed content1_missing_content1_content4-tracked which other deleted
145 local [working copy] changed content1_missing_content1_content4-tracked which other [merge rev] deleted
146 146 use (c)hanged version, (d)elete, or leave (u)nresolved? u
147 local changed content1_missing_content3_content3-tracked which other deleted
147 local [working copy] changed content1_missing_content3_content3-tracked which other [merge rev] deleted
148 148 use (c)hanged version, (d)elete, or leave (u)nresolved? u
149 local changed content1_missing_content3_content4-tracked which other deleted
149 local [working copy] changed content1_missing_content3_content4-tracked which other [merge rev] deleted
150 150 use (c)hanged version, (d)elete, or leave (u)nresolved? u
151 local changed content1_missing_missing_content4-tracked which other deleted
151 local [working copy] changed content1_missing_missing_content4-tracked which other [merge rev] deleted
152 152 use (c)hanged version, (d)elete, or leave (u)nresolved? u
153 other changed content1_content2_content1_content1-untracked which local deleted
153 other [merge rev] changed content1_content2_content1_content1-untracked which local [working copy] deleted
154 154 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
155 other changed content1_content2_content1_content2-untracked which local deleted
155 other [merge rev] changed content1_content2_content1_content2-untracked which local [working copy] deleted
156 156 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
157 other changed content1_content2_content1_content4-untracked which local deleted
157 other [merge rev] changed content1_content2_content1_content4-untracked which local [working copy] deleted
158 158 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
159 other changed content1_content2_content1_missing-tracked which local deleted
159 other [merge rev] changed content1_content2_content1_missing-tracked which local [working copy] deleted
160 160 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
161 other changed content1_content2_content1_missing-untracked which local deleted
161 other [merge rev] changed content1_content2_content1_missing-untracked which local [working copy] deleted
162 162 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
163 other changed content1_content2_content2_content1-untracked which local deleted
163 other [merge rev] changed content1_content2_content2_content1-untracked which local [working copy] deleted
164 164 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
165 other changed content1_content2_content2_content2-untracked which local deleted
165 other [merge rev] changed content1_content2_content2_content2-untracked which local [working copy] deleted
166 166 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
167 other changed content1_content2_content2_content4-untracked which local deleted
167 other [merge rev] changed content1_content2_content2_content4-untracked which local [working copy] deleted
168 168 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
169 other changed content1_content2_content2_missing-tracked which local deleted
169 other [merge rev] changed content1_content2_content2_missing-tracked which local [working copy] deleted
170 170 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
171 other changed content1_content2_content2_missing-untracked which local deleted
171 other [merge rev] changed content1_content2_content2_missing-untracked which local [working copy] deleted
172 172 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
173 other changed content1_content2_content3_content1-untracked which local deleted
173 other [merge rev] changed content1_content2_content3_content1-untracked which local [working copy] deleted
174 174 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
175 other changed content1_content2_content3_content2-untracked which local deleted
175 other [merge rev] changed content1_content2_content3_content2-untracked which local [working copy] deleted
176 176 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
177 other changed content1_content2_content3_content3-untracked which local deleted
177 other [merge rev] changed content1_content2_content3_content3-untracked which local [working copy] deleted
178 178 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
179 other changed content1_content2_content3_content4-untracked which local deleted
179 other [merge rev] changed content1_content2_content3_content4-untracked which local [working copy] deleted
180 180 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
181 other changed content1_content2_content3_missing-tracked which local deleted
181 other [merge rev] changed content1_content2_content3_missing-tracked which local [working copy] deleted
182 182 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
183 other changed content1_content2_content3_missing-untracked which local deleted
183 other [merge rev] changed content1_content2_content3_missing-untracked which local [working copy] deleted
184 184 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
185 other changed content1_content2_missing_content1-untracked which local deleted
185 other [merge rev] changed content1_content2_missing_content1-untracked which local [working copy] deleted
186 186 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
187 other changed content1_content2_missing_content2-untracked which local deleted
187 other [merge rev] changed content1_content2_missing_content2-untracked which local [working copy] deleted
188 188 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
189 other changed content1_content2_missing_content4-untracked which local deleted
189 other [merge rev] changed content1_content2_missing_content4-untracked which local [working copy] deleted
190 190 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
191 other changed content1_content2_missing_missing-tracked which local deleted
191 other [merge rev] changed content1_content2_missing_missing-tracked which local [working copy] deleted
192 192 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
193 other changed content1_content2_missing_missing-untracked which local deleted
193 other [merge rev] changed content1_content2_missing_missing-untracked which local [working copy] deleted
194 194 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
195 195 merging content1_content2_content1_content4-tracked
196 196 merging content1_content2_content2_content1-tracked
@@ -373,13 +373,13 b' the remote side did not touch the file'
373 373 content2
374 374
375 375 M content1_content2_content1_content4-tracked
376 <<<<<<< local: 0447570f1af6 - test: local
376 <<<<<<< working copy: 0447570f1af6 - test: local
377 377 content4
378 378 ||||||| base
379 379 content1
380 380 =======
381 381 content2
382 >>>>>>> other: 85100b8c675b - test: remote
382 >>>>>>> merge rev: 85100b8c675b - test: remote
383 383
384 384 M content1_content2_content1_content4-untracked
385 385 content2
@@ -403,13 +403,13 b' the remote side did not touch the file'
403 403 content2
404 404
405 405 M content1_content2_content2_content4-tracked
406 <<<<<<< local: 0447570f1af6 - test: local
406 <<<<<<< working copy: 0447570f1af6 - test: local
407 407 content4
408 408 ||||||| base
409 409 content1
410 410 =======
411 411 content2
412 >>>>>>> other: 85100b8c675b - test: remote
412 >>>>>>> merge rev: 85100b8c675b - test: remote
413 413
414 414 M content1_content2_content2_content4-untracked
415 415 content2
@@ -433,25 +433,25 b' the remote side did not touch the file'
433 433 content2
434 434
435 435 M content1_content2_content3_content3-tracked
436 <<<<<<< local: 0447570f1af6 - test: local
436 <<<<<<< working copy: 0447570f1af6 - test: local
437 437 content3
438 438 ||||||| base
439 439 content1
440 440 =======
441 441 content2
442 >>>>>>> other: 85100b8c675b - test: remote
442 >>>>>>> merge rev: 85100b8c675b - test: remote
443 443
444 444 M content1_content2_content3_content3-untracked
445 445 content2
446 446
447 447 M content1_content2_content3_content4-tracked
448 <<<<<<< local: 0447570f1af6 - test: local
448 <<<<<<< working copy: 0447570f1af6 - test: local
449 449 content4
450 450 ||||||| base
451 451 content1
452 452 =======
453 453 content2
454 >>>>>>> other: 85100b8c675b - test: remote
454 >>>>>>> merge rev: 85100b8c675b - test: remote
455 455
456 456 M content1_content2_content3_content4-untracked
457 457 content2
@@ -475,13 +475,13 b' the remote side did not touch the file'
475 475 content2
476 476
477 477 M content1_content2_missing_content4-tracked
478 <<<<<<< local: 0447570f1af6 - test: local
478 <<<<<<< working copy: 0447570f1af6 - test: local
479 479 content4
480 480 ||||||| base
481 481 content1
482 482 =======
483 483 content2
484 >>>>>>> other: 85100b8c675b - test: remote
484 >>>>>>> merge rev: 85100b8c675b - test: remote
485 485
486 486 M content1_content2_missing_content4-untracked
487 487 content2
@@ -559,12 +559,12 b' the remote side did not touch the file'
559 559 content2
560 560
561 561 M missing_content2_content2_content4-tracked
562 <<<<<<< local: 0447570f1af6 - test: local
562 <<<<<<< working copy: 0447570f1af6 - test: local
563 563 content4
564 564 ||||||| base
565 565 =======
566 566 content2
567 >>>>>>> other: 85100b8c675b - test: remote
567 >>>>>>> merge rev: 85100b8c675b - test: remote
568 568
569 569 M missing_content2_content2_content4-untracked
570 570 content2
@@ -582,23 +582,23 b' the remote side did not touch the file'
582 582 content2
583 583
584 584 M missing_content2_content3_content3-tracked
585 <<<<<<< local: 0447570f1af6 - test: local
585 <<<<<<< working copy: 0447570f1af6 - test: local
586 586 content3
587 587 ||||||| base
588 588 =======
589 589 content2
590 >>>>>>> other: 85100b8c675b - test: remote
590 >>>>>>> merge rev: 85100b8c675b - test: remote
591 591
592 592 M missing_content2_content3_content3-untracked
593 593 content2
594 594
595 595 M missing_content2_content3_content4-tracked
596 <<<<<<< local: 0447570f1af6 - test: local
596 <<<<<<< working copy: 0447570f1af6 - test: local
597 597 content4
598 598 ||||||| base
599 599 =======
600 600 content2
601 >>>>>>> other: 85100b8c675b - test: remote
601 >>>>>>> merge rev: 85100b8c675b - test: remote
602 602
603 603 M missing_content2_content3_content4-untracked
604 604 content2
@@ -616,20 +616,20 b' the remote side did not touch the file'
616 616 content2
617 617
618 618 M missing_content2_missing_content4-tracked
619 <<<<<<< local: 0447570f1af6 - test: local
619 <<<<<<< working copy: 0447570f1af6 - test: local
620 620 content4
621 621 ||||||| base
622 622 =======
623 623 content2
624 >>>>>>> other: 85100b8c675b - test: remote
624 >>>>>>> merge rev: 85100b8c675b - test: remote
625 625
626 626 M missing_content2_missing_content4-untracked
627 <<<<<<< local: 0447570f1af6 - test: local
627 <<<<<<< working copy: 0447570f1af6 - test: local
628 628 content4
629 629 ||||||| base
630 630 =======
631 631 content2
632 >>>>>>> other: 85100b8c675b - test: remote
632 >>>>>>> merge rev: 85100b8c675b - test: remote
633 633
634 634 M missing_content2_missing_missing-tracked
635 635 content2
@@ -703,63 +703,63 b' Re-resolve and check status'
703 703 (no more unresolved files)
704 704 $ hg resolve --unmark --all
705 705 $ hg resolve --all --tool internal:merge3
706 other changed content1_content2_content1_content1-untracked which local deleted
706 other [merge rev] changed content1_content2_content1_content1-untracked which local [working copy] deleted
707 707 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
708 other changed content1_content2_content1_content2-untracked which local deleted
708 other [merge rev] changed content1_content2_content1_content2-untracked which local [working copy] deleted
709 709 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
710 710 merging content1_content2_content1_content4-tracked
711 other changed content1_content2_content1_content4-untracked which local deleted
711 other [merge rev] changed content1_content2_content1_content4-untracked which local [working copy] deleted
712 712 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
713 other changed content1_content2_content1_missing-tracked which local deleted
713 other [merge rev] changed content1_content2_content1_missing-tracked which local [working copy] deleted
714 714 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
715 other changed content1_content2_content1_missing-untracked which local deleted
715 other [merge rev] changed content1_content2_content1_missing-untracked which local [working copy] deleted
716 716 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
717 717 merging content1_content2_content2_content1-tracked
718 other changed content1_content2_content2_content1-untracked which local deleted
718 other [merge rev] changed content1_content2_content2_content1-untracked which local [working copy] deleted
719 719 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
720 other changed content1_content2_content2_content2-untracked which local deleted
720 other [merge rev] changed content1_content2_content2_content2-untracked which local [working copy] deleted
721 721 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
722 722 merging content1_content2_content2_content4-tracked
723 other changed content1_content2_content2_content4-untracked which local deleted
723 other [merge rev] changed content1_content2_content2_content4-untracked which local [working copy] deleted
724 724 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
725 other changed content1_content2_content2_missing-tracked which local deleted
725 other [merge rev] changed content1_content2_content2_missing-tracked which local [working copy] deleted
726 726 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
727 other changed content1_content2_content2_missing-untracked which local deleted
727 other [merge rev] changed content1_content2_content2_missing-untracked which local [working copy] deleted
728 728 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
729 729 merging content1_content2_content3_content1-tracked
730 other changed content1_content2_content3_content1-untracked which local deleted
730 other [merge rev] changed content1_content2_content3_content1-untracked which local [working copy] deleted
731 731 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
732 other changed content1_content2_content3_content2-untracked which local deleted
732 other [merge rev] changed content1_content2_content3_content2-untracked which local [working copy] deleted
733 733 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
734 734 merging content1_content2_content3_content3-tracked
735 other changed content1_content2_content3_content3-untracked which local deleted
735 other [merge rev] changed content1_content2_content3_content3-untracked which local [working copy] deleted
736 736 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
737 737 merging content1_content2_content3_content4-tracked
738 other changed content1_content2_content3_content4-untracked which local deleted
738 other [merge rev] changed content1_content2_content3_content4-untracked which local [working copy] deleted
739 739 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
740 other changed content1_content2_content3_missing-tracked which local deleted
740 other [merge rev] changed content1_content2_content3_missing-tracked which local [working copy] deleted
741 741 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
742 other changed content1_content2_content3_missing-untracked which local deleted
742 other [merge rev] changed content1_content2_content3_missing-untracked which local [working copy] deleted
743 743 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
744 744 merging content1_content2_missing_content1-tracked
745 other changed content1_content2_missing_content1-untracked which local deleted
745 other [merge rev] changed content1_content2_missing_content1-untracked which local [working copy] deleted
746 746 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
747 other changed content1_content2_missing_content2-untracked which local deleted
747 other [merge rev] changed content1_content2_missing_content2-untracked which local [working copy] deleted
748 748 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
749 749 merging content1_content2_missing_content4-tracked
750 other changed content1_content2_missing_content4-untracked which local deleted
750 other [merge rev] changed content1_content2_missing_content4-untracked which local [working copy] deleted
751 751 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
752 other changed content1_content2_missing_missing-tracked which local deleted
752 other [merge rev] changed content1_content2_missing_missing-tracked which local [working copy] deleted
753 753 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
754 other changed content1_content2_missing_missing-untracked which local deleted
754 other [merge rev] changed content1_content2_missing_missing-untracked which local [working copy] deleted
755 755 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
756 local changed content1_missing_content1_content4-tracked which other deleted
756 local [working copy] changed content1_missing_content1_content4-tracked which other [merge rev] deleted
757 757 use (c)hanged version, (d)elete, or leave (u)nresolved? u
758 local changed content1_missing_content3_content3-tracked which other deleted
758 local [working copy] changed content1_missing_content3_content3-tracked which other [merge rev] deleted
759 759 use (c)hanged version, (d)elete, or leave (u)nresolved? u
760 local changed content1_missing_content3_content4-tracked which other deleted
760 local [working copy] changed content1_missing_content3_content4-tracked which other [merge rev] deleted
761 761 use (c)hanged version, (d)elete, or leave (u)nresolved? u
762 local changed content1_missing_missing_content4-tracked which other deleted
762 local [working copy] changed content1_missing_missing_content4-tracked which other [merge rev] deleted
763 763 use (c)hanged version, (d)elete, or leave (u)nresolved? u
764 764 merging missing_content2_content2_content4-tracked
765 765 merging missing_content2_content3_content3-tracked
@@ -102,7 +102,7 b' Merge should not overwrite local file th'
102 102 Those who use force will lose
103 103
104 104 $ hg merge -f
105 other changed bar which local deleted
105 other [merge rev] changed bar which local [working copy] deleted
106 106 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
107 107 merging foo1 and foo to foo1
108 108 0 files updated, 1 files merged, 0 files removed, 1 files unresolved
@@ -75,11 +75,11 b' running from a devel copy, not a temp in'
75 75 [1]
76 76 $ aftermerge
77 77 # cat f
78 <<<<<<< local: ef83787e2614 - test: revision 1
78 <<<<<<< working copy: ef83787e2614 - test: revision 1
79 79 revision 1
80 80 =======
81 81 revision 2
82 >>>>>>> other: 0185f4e0cf02 - test: revision 2
82 >>>>>>> merge rev: 0185f4e0cf02 - test: revision 2
83 83 space
84 84 # hg stat
85 85 M f
@@ -532,7 +532,7 b' ui.merge specifies internal:prompt:'
532 532 # hg update -C 1
533 533 $ hg merge -r 2 --config ui.merge=internal:prompt
534 534 no tool found to merge f
535 keep (l)ocal, take (o)ther, or leave (u)nresolved? u
535 keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved? u
536 536 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
537 537 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
538 538 [1]
@@ -557,7 +557,7 b" ui.merge specifies :prompt, with 'leave "
557 557 > u
558 558 > EOF
559 559 no tool found to merge f
560 keep (l)ocal, take (o)ther, or leave (u)nresolved? u
560 keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved? u
561 561 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
562 562 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
563 563 [1]
@@ -580,7 +580,7 b' prompt with EOF'
580 580 # hg update -C 1
581 581 $ hg merge -r 2 --config ui.merge=internal:prompt --config ui.interactive=true
582 582 no tool found to merge f
583 keep (l)ocal, take (o)ther, or leave (u)nresolved?
583 keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved?
584 584 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
585 585 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
586 586 [1]
@@ -594,7 +594,7 b' prompt with EOF'
594 594 U f
595 595 $ hg resolve --all --config ui.merge=internal:prompt --config ui.interactive=true
596 596 no tool found to merge f
597 keep (l)ocal, take (o)ther, or leave (u)nresolved?
597 keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved?
598 598 [1]
599 599 $ aftermerge
600 600 # cat f
@@ -608,7 +608,7 b' prompt with EOF'
608 608 $ rm f
609 609 $ hg resolve --all --config ui.merge=internal:prompt --config ui.interactive=true
610 610 no tool found to merge f
611 keep (l)ocal, take (o)ther, or leave (u)nresolved?
611 keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved?
612 612 [1]
613 613 $ aftermerge
614 614 # cat f
@@ -620,7 +620,7 b' prompt with EOF'
620 620 U f
621 621 $ hg resolve --all --config ui.merge=internal:prompt
622 622 no tool found to merge f
623 keep (l)ocal, take (o)ther, or leave (u)nresolved? u
623 keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved? u
624 624 [1]
625 625 $ aftermerge
626 626 # cat f
@@ -935,12 +935,12 b' premerge=keep keeps conflict markers in:'
935 935 # hg update -C 1
936 936 $ hg merge -r 4 --config merge-tools.true.premerge=keep
937 937 merging f
938 <<<<<<< local: ef83787e2614 - test: revision 1
938 <<<<<<< working copy: ef83787e2614 - test: revision 1
939 939 revision 1
940 940 space
941 941 =======
942 942 revision 4
943 >>>>>>> other: 81448d39c9a0 - test: revision 4
943 >>>>>>> merge rev: 81448d39c9a0 - test: revision 4
944 944 revision 0
945 945 space
946 946 revision 4
@@ -948,12 +948,12 b' premerge=keep keeps conflict markers in:'
948 948 (branch merge, don't forget to commit)
949 949 $ aftermerge
950 950 # cat f
951 <<<<<<< local: ef83787e2614 - test: revision 1
951 <<<<<<< working copy: ef83787e2614 - test: revision 1
952 952 revision 1
953 953 space
954 954 =======
955 955 revision 4
956 >>>>>>> other: 81448d39c9a0 - test: revision 4
956 >>>>>>> merge rev: 81448d39c9a0 - test: revision 4
957 957 # hg stat
958 958 M f
959 959 # hg resolve --list
@@ -969,7 +969,7 b' premerge=keep-merge3 keeps conflict mark'
969 969 # hg update -C 1
970 970 $ hg merge -r 4 --config merge-tools.true.premerge=keep-merge3
971 971 merging f
972 <<<<<<< local: ef83787e2614 - test: revision 1
972 <<<<<<< working copy: ef83787e2614 - test: revision 1
973 973 revision 1
974 974 space
975 975 ||||||| base
@@ -977,7 +977,7 b' premerge=keep-merge3 keeps conflict mark'
977 977 space
978 978 =======
979 979 revision 4
980 >>>>>>> other: 81448d39c9a0 - test: revision 4
980 >>>>>>> merge rev: 81448d39c9a0 - test: revision 4
981 981 revision 0
982 982 space
983 983 revision 4
@@ -985,7 +985,7 b' premerge=keep-merge3 keeps conflict mark'
985 985 (branch merge, don't forget to commit)
986 986 $ aftermerge
987 987 # cat f
988 <<<<<<< local: ef83787e2614 - test: revision 1
988 <<<<<<< working copy: ef83787e2614 - test: revision 1
989 989 revision 1
990 990 space
991 991 ||||||| base
@@ -993,7 +993,7 b' premerge=keep-merge3 keeps conflict mark'
993 993 space
994 994 =======
995 995 revision 4
996 >>>>>>> other: 81448d39c9a0 - test: revision 4
996 >>>>>>> merge rev: 81448d39c9a0 - test: revision 4
997 997 # hg stat
998 998 M f
999 999 # hg resolve --list
@@ -356,18 +356,18 b' h: l vs l, different'
356 356 U h
357 357 $ tellmeabout a
358 358 a is a plain file with content:
359 <<<<<<< local: 0139c5610547 - test: 2
359 <<<<<<< working copy: 0139c5610547 - test: 2
360 360 2
361 361 =======
362 362 1
363 >>>>>>> other: 97e29675e796 - test: 1
363 >>>>>>> merge rev: 97e29675e796 - test: 1
364 364 $ tellmeabout b
365 365 b is a plain file with content:
366 <<<<<<< local: 0139c5610547 - test: 2
366 <<<<<<< working copy: 0139c5610547 - test: 2
367 367 2
368 368 =======
369 369 1
370 >>>>>>> other: 97e29675e796 - test: 1
370 >>>>>>> merge rev: 97e29675e796 - test: 1
371 371 $ tellmeabout c
372 372 c is a plain file with content:
373 373 x
@@ -409,18 +409,18 b' h: l vs l, different'
409 409 [1]
410 410 $ tellmeabout a
411 411 a is a plain file with content:
412 <<<<<<< local: 97e29675e796 - test: 1
412 <<<<<<< working copy: 97e29675e796 - test: 1
413 413 1
414 414 =======
415 415 2
416 >>>>>>> other: 0139c5610547 - test: 2
416 >>>>>>> merge rev: 0139c5610547 - test: 2
417 417 $ tellmeabout b
418 418 b is an executable file with content:
419 <<<<<<< local: 97e29675e796 - test: 1
419 <<<<<<< working copy: 97e29675e796 - test: 1
420 420 1
421 421 =======
422 422 2
423 >>>>>>> other: 0139c5610547 - test: 2
423 >>>>>>> merge rev: 0139c5610547 - test: 2
424 424 $ tellmeabout c
425 425 c is an executable file with content:
426 426 x
@@ -99,11 +99,11 b' pull and merge from test-a again'
99 99
100 100 $ cat test.txt
101 101 one
102 <<<<<<< local: 50c3a7e29886 - test: Merge 1
102 <<<<<<< working copy: 50c3a7e29886 - test: Merge 1
103 103 two-point-five
104 104 =======
105 105 two-point-one
106 >>>>>>> other: 40d11a4173a8 - test: two -> two-point-one
106 >>>>>>> merge rev: 40d11a4173a8 - test: two -> two-point-one
107 107 three
108 108
109 109 $ hg debugindex test.txt
@@ -144,11 +144,11 b' and committed in local target directory.'
144 144 C b/a
145 145 C b/b
146 146 $ cat b/c
147 <<<<<<< local: f1c50ca4f127 - test: new file in target directory
147 <<<<<<< working copy: f1c50ca4f127 - test: new file in target directory
148 148 target
149 149 =======
150 150 baz
151 >>>>>>> other: ce36d17b18fb - test: 2 add a/c
151 >>>>>>> merge rev: ce36d17b18fb - test: 2 add a/c
152 152 $ rm b/c.orig
153 153
154 154 Remote directory rename with conflicting file added in remote target directory
@@ -177,11 +177,11 b' and committed in local source directory.'
177 177 ? a/d
178 178 ? b/c.orig
179 179 $ cat b/c
180 <<<<<<< local: ce36d17b18fb - test: 2 add a/c
180 <<<<<<< working copy: ce36d17b18fb - test: 2 add a/c
181 181 baz
182 182 =======
183 183 target
184 >>>>>>> other: f1c50ca4f127 - test: new file in target directory
184 >>>>>>> merge rev: f1c50ca4f127 - test: new file in target directory
185 185
186 186 Second scenario with two repos:
187 187
@@ -694,7 +694,7 b' m "um a c" "um x c" " " "10 do merg'
694 694 starting 4 threads for background file closing (?)
695 695 a: prompt deleted/changed -> m (premerge)
696 696 picked tool ':prompt' for a (binary False symlink False changedelete True)
697 other changed a which local deleted
697 other [merge rev] changed a which local [working copy] deleted
698 698 use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u
699 699 b: both created -> m (premerge)
700 700 picked tool 'python ../merge' for b (binary False symlink False changedelete False)
@@ -739,7 +739,7 b' m "um a c" "um x c" " " "10 do merg'
739 739 starting 4 threads for background file closing (?)
740 740 a: prompt changed/deleted -> m (premerge)
741 741 picked tool ':prompt' for a (binary False symlink False changedelete True)
742 local changed a which other deleted
742 local [working copy] changed a which other [merge rev] deleted
743 743 use (c)hanged version, (d)elete, or leave (u)nresolved? u
744 744 b: both created -> m (premerge)
745 745 picked tool 'python ../merge' for b (binary False symlink False changedelete False)
@@ -290,6 +290,9 b' insert unsupported advisory merge record'
290 290 * version 2 records
291 291 local: 57653b9f834a4493f7240b0681efcb9ae7cab745
292 292 other: dc77451844e37f03f5c559e3b8529b2b48d381d1
293 labels:
294 local: working copy
295 other: merge rev
293 296 unrecognized entry: x advisory record
294 297 file extras: file1 (ancestorlinknode = 99726c03216e233810a2564cbc0adfe395007eac)
295 298 file: file1 (record type "F", state "r", hash 60b27f004e454aca81b0480209cce5081ec52390)
@@ -312,6 +315,9 b' insert unsupported mandatory merge recor'
312 315 * version 2 records
313 316 local: 57653b9f834a4493f7240b0681efcb9ae7cab745
314 317 other: dc77451844e37f03f5c559e3b8529b2b48d381d1
318 labels:
319 local: working copy
320 other: merge rev
315 321 file extras: file1 (ancestorlinknode = 99726c03216e233810a2564cbc0adfe395007eac)
316 322 file: file1 (record type "F", state "r", hash 60b27f004e454aca81b0480209cce5081ec52390)
317 323 local path: file1 (flags "")
@@ -171,7 +171,7 b' user a pulls, merges, commits'
171 171 (run 'hg heads' to see heads, 'hg merge' to merge)
172 172 $ hg merge 2>/dev/null
173 173 subrepository s diverged (local revision: 7969594, remote revision: aa84837)
174 (M)erge, keep (l)ocal or keep (r)emote? m
174 (M)erge, keep (l)ocal [working copy] or keep (r)emote [merge rev]? m
175 175 pulling subrepo s from $TESTTMP/gitroot
176 176 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
177 177 (branch merge, don't forget to commit)
@@ -304,7 +304,7 b' merge tests'
304 304 subrepo t: both sides changed
305 305 subrepository t diverged (local revision: 20a0db6fbf6c, remote revision: 7af322bc1198)
306 306 starting 4 threads for background file closing (?)
307 (M)erge, keep (l)ocal or keep (r)emote? m
307 (M)erge, keep (l)ocal [working copy] or keep (r)emote [merge rev]? m
308 308 merging subrepo t
309 309 searching for copies back to rev 2
310 310 resolving manifests
@@ -349,7 +349,7 b' 11: remove subrepo t'
349 349 local removed, remote changed, keep changed
350 350
351 351 $ hg merge 6
352 remote changed subrepository s which local removed
352 remote [merge rev] changed subrepository s which local [working copy] removed
353 353 use (c)hanged version or (d)elete? c
354 354 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
355 355 (branch merge, don't forget to commit)
@@ -380,7 +380,7 b' local removed, remote changed, keep remo'
380 380 $ hg merge --config ui.interactive=true 6 <<EOF
381 381 > d
382 382 > EOF
383 remote changed subrepository s which local removed
383 remote [merge rev] changed subrepository s which local [working copy] removed
384 384 use (c)hanged version or (d)elete? d
385 385 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
386 386 (branch merge, don't forget to commit)
@@ -404,7 +404,7 b' local changed, remote removed, keep chan'
404 404 $ hg co -C 6
405 405 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
406 406 $ hg merge 11
407 local changed subrepository s which remote removed
407 local [working copy] changed subrepository s which remote [merge rev] removed
408 408 use (c)hanged version or (d)elete? c
409 409 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
410 410 (branch merge, don't forget to commit)
@@ -436,7 +436,7 b' local changed, remote removed, keep remo'
436 436 $ hg merge --config ui.interactive=true 11 <<EOF
437 437 > d
438 438 > EOF
439 local changed subrepository s which remote removed
439 local [working copy] changed subrepository s which remote [merge rev] removed
440 440 use (c)hanged version or (d)elete? d
441 441 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
442 442 (branch merge, don't forget to commit)
@@ -860,7 +860,7 b" shouldn't need merging"
860 860 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
861 861 $ hg merge 4 # try to merge default into br again
862 862 subrepository s diverged (local revision: f8f13b33206e, remote revision: a3f9062a4f88)
863 (M)erge, keep (l)ocal or keep (r)emote? m
863 (M)erge, keep (l)ocal [working copy] or keep (r)emote [merge rev]? m
864 864 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
865 865 (branch merge, don't forget to commit)
866 866 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now