Show More
@@ -1,1071 +1,1070 b'' | |||
|
1 | 1 | |
|
2 | 2 | $ mkdir -p t |
|
3 | 3 | $ cd t |
|
4 | 4 | $ cat <<EOF > merge |
|
5 | 5 | > import sys, os |
|
6 | 6 | > f = open(sys.argv[1], "w") |
|
7 | 7 | > f.write("merge %s %s %s" % (sys.argv[1], sys.argv[2], sys.argv[3])) |
|
8 | 8 | > f.close() |
|
9 | 9 | > EOF |
|
10 | 10 | |
|
11 | 11 | perform a test merge with possible renaming |
|
12 | 12 | args: |
|
13 | 13 | $1 = action in local branch |
|
14 | 14 | $2 = action in remote branch |
|
15 | 15 | $3 = action in working dir |
|
16 | 16 | $4 = expected result |
|
17 | 17 | |
|
18 | 18 | $ tm() |
|
19 | 19 | > { |
|
20 | 20 | > hg init t |
|
21 | 21 | > cd t |
|
22 | 22 | > echo "[merge]" >> .hg/hgrc |
|
23 | 23 | > echo "followcopies = 1" >> .hg/hgrc |
|
24 | 24 | > |
|
25 | 25 | > # base |
|
26 | 26 | > echo base > a |
|
27 | 27 | > echo base > rev # used to force commits |
|
28 | 28 | > hg add a rev |
|
29 | 29 | > hg ci -m "base" |
|
30 | 30 | > |
|
31 | 31 | > # remote |
|
32 | 32 | > echo remote > rev |
|
33 | 33 | > if [ "$2" != "" ] ; then $2 ; fi |
|
34 | 34 | > hg ci -m "remote" |
|
35 | 35 | > |
|
36 | 36 | > # local |
|
37 | 37 | > hg co -q 0 |
|
38 | 38 | > echo local > rev |
|
39 | 39 | > if [ "$1" != "" ] ; then $1 ; fi |
|
40 | 40 | > hg ci -m "local" |
|
41 | 41 | > |
|
42 | 42 | > # working dir |
|
43 | 43 | > echo local > rev |
|
44 | 44 | > if [ "$3" != "" ] ; then $3 ; fi |
|
45 | 45 | > |
|
46 | 46 | > # merge |
|
47 | 47 | > echo "--------------" |
|
48 | 48 | > echo "test L:$1 R:$2 W:$3 - $4" |
|
49 | 49 | > echo "--------------" |
|
50 | 50 | > hg merge -y --debug --traceback --tool="\"$PYTHON\" ../merge" |
|
51 | 51 | > |
|
52 | 52 | > echo "--------------" |
|
53 | 53 | > hg status -camC -X rev |
|
54 | 54 | > |
|
55 | 55 | > hg ci -m "merge" |
|
56 | 56 | > |
|
57 | 57 | > echo "--------------" |
|
58 | 58 | > echo |
|
59 | 59 | > |
|
60 | 60 | > cd .. |
|
61 | 61 | > rm -r t |
|
62 | 62 | > } |
|
63 | 63 | $ up() { |
|
64 | 64 | > cp rev $1 |
|
65 | 65 | > hg add $1 2> /dev/null |
|
66 | 66 | > if [ "$2" != "" ] ; then |
|
67 | 67 | > cp rev $2 |
|
68 | 68 | > hg add $2 2> /dev/null |
|
69 | 69 | > fi |
|
70 | 70 | > } |
|
71 | $ uc() { up $1; hg cp $1 $2; } # update + copy | |
|
72 | 71 | $ um() { up $1; hg mv $1 $2; } |
|
73 | 72 | $ nc() { hg cp $1 $2; } # just copy |
|
74 | 73 | $ nm() { hg mv $1 $2; } # just move |
|
75 | 74 | $ tm "up a " "nc a b" " " "1 get local a to b" |
|
76 | 75 | created new head |
|
77 | 76 | -------------- |
|
78 | 77 | test L:up a R:nc a b W: - 1 get local a to b |
|
79 | 78 | -------------- |
|
80 | 79 | searching for copies back to rev 1 |
|
81 | 80 | unmatched files in other: |
|
82 | 81 | b |
|
83 | 82 | all copies found (* = to merge, ! = divergent, % = renamed and deleted): |
|
84 | 83 | src: 'a' -> dst: 'b' * |
|
85 | 84 | checking for directory renames |
|
86 | 85 | resolving manifests |
|
87 | 86 | branchmerge: True, force: False, partial: False |
|
88 | 87 | ancestor: 924404dff337, local: e300d1c794ec+, remote: 4ce40f5aca24 |
|
89 | 88 | preserving a for resolve of b |
|
90 | 89 | preserving rev for resolve of rev |
|
91 | 90 | starting 4 threads for background file closing (?) |
|
92 | 91 | b: remote copied from a -> m (premerge) |
|
93 | 92 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
94 | 93 | merging a and b to b |
|
95 | 94 | my b@e300d1c794ec+ other b@4ce40f5aca24 ancestor a@924404dff337 |
|
96 | 95 | premerge successful |
|
97 | 96 | rev: versions differ -> m (premerge) |
|
98 | 97 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
99 | 98 | merging rev |
|
100 | 99 | my rev@e300d1c794ec+ other rev@4ce40f5aca24 ancestor rev@924404dff337 |
|
101 | 100 | rev: versions differ -> m (merge) |
|
102 | 101 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
103 | 102 | my rev@e300d1c794ec+ other rev@4ce40f5aca24 ancestor rev@924404dff337 |
|
104 | 103 | launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob) |
|
105 | 104 | merge tool returned: 0 |
|
106 | 105 | 0 files updated, 2 files merged, 0 files removed, 0 files unresolved |
|
107 | 106 | (branch merge, don't forget to commit) |
|
108 | 107 | -------------- |
|
109 | 108 | M b |
|
110 | 109 | a |
|
111 | 110 | C a |
|
112 | 111 | -------------- |
|
113 | 112 | |
|
114 | 113 | $ tm "nc a b" "up a " " " "2 get rem change to a and b" |
|
115 | 114 | created new head |
|
116 | 115 | -------------- |
|
117 | 116 | test L:nc a b R:up a W: - 2 get rem change to a and b |
|
118 | 117 | -------------- |
|
119 | 118 | searching for copies back to rev 1 |
|
120 | 119 | unmatched files in local: |
|
121 | 120 | b |
|
122 | 121 | all copies found (* = to merge, ! = divergent, % = renamed and deleted): |
|
123 | 122 | src: 'a' -> dst: 'b' * |
|
124 | 123 | checking for directory renames |
|
125 | 124 | resolving manifests |
|
126 | 125 | branchmerge: True, force: False, partial: False |
|
127 | 126 | ancestor: 924404dff337, local: 86a2aa42fc76+, remote: f4db7e329e71 |
|
128 | 127 | preserving b for resolve of b |
|
129 | 128 | preserving rev for resolve of rev |
|
130 | 129 | a: remote is newer -> g |
|
131 | 130 | getting a |
|
132 | 131 | b: local copied/moved from a -> m (premerge) |
|
133 | 132 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
134 | 133 | merging b and a to b |
|
135 | 134 | my b@86a2aa42fc76+ other a@f4db7e329e71 ancestor a@924404dff337 |
|
136 | 135 | premerge successful |
|
137 | 136 | rev: versions differ -> m (premerge) |
|
138 | 137 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
139 | 138 | merging rev |
|
140 | 139 | my rev@86a2aa42fc76+ other rev@f4db7e329e71 ancestor rev@924404dff337 |
|
141 | 140 | rev: versions differ -> m (merge) |
|
142 | 141 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
143 | 142 | my rev@86a2aa42fc76+ other rev@f4db7e329e71 ancestor rev@924404dff337 |
|
144 | 143 | launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob) |
|
145 | 144 | merge tool returned: 0 |
|
146 | 145 | 1 files updated, 2 files merged, 0 files removed, 0 files unresolved |
|
147 | 146 | (branch merge, don't forget to commit) |
|
148 | 147 | -------------- |
|
149 | 148 | M a |
|
150 | 149 | M b |
|
151 | 150 | a |
|
152 | 151 | -------------- |
|
153 | 152 | |
|
154 | 153 | $ tm "up a " "nm a b" " " "3 get local a change to b, remove a" |
|
155 | 154 | created new head |
|
156 | 155 | -------------- |
|
157 | 156 | test L:up a R:nm a b W: - 3 get local a change to b, remove a |
|
158 | 157 | -------------- |
|
159 | 158 | searching for copies back to rev 1 |
|
160 | 159 | unmatched files in other: |
|
161 | 160 | b |
|
162 | 161 | all copies found (* = to merge, ! = divergent, % = renamed and deleted): |
|
163 | 162 | src: 'a' -> dst: 'b' * |
|
164 | 163 | checking for directory renames |
|
165 | 164 | resolving manifests |
|
166 | 165 | branchmerge: True, force: False, partial: False |
|
167 | 166 | ancestor: 924404dff337, local: e300d1c794ec+, remote: bdb19105162a |
|
168 | 167 | preserving a for resolve of b |
|
169 | 168 | preserving rev for resolve of rev |
|
170 | 169 | removing a |
|
171 | 170 | starting 4 threads for background file closing (?) |
|
172 | 171 | b: remote moved from a -> m (premerge) |
|
173 | 172 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
174 | 173 | merging a and b to b |
|
175 | 174 | my b@e300d1c794ec+ other b@bdb19105162a ancestor a@924404dff337 |
|
176 | 175 | premerge successful |
|
177 | 176 | rev: versions differ -> m (premerge) |
|
178 | 177 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
179 | 178 | merging rev |
|
180 | 179 | my rev@e300d1c794ec+ other rev@bdb19105162a ancestor rev@924404dff337 |
|
181 | 180 | rev: versions differ -> m (merge) |
|
182 | 181 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
183 | 182 | my rev@e300d1c794ec+ other rev@bdb19105162a ancestor rev@924404dff337 |
|
184 | 183 | launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob) |
|
185 | 184 | merge tool returned: 0 |
|
186 | 185 | 0 files updated, 2 files merged, 0 files removed, 0 files unresolved |
|
187 | 186 | (branch merge, don't forget to commit) |
|
188 | 187 | -------------- |
|
189 | 188 | M b |
|
190 | 189 | a |
|
191 | 190 | -------------- |
|
192 | 191 | |
|
193 | 192 | $ tm "nm a b" "up a " " " "4 get remote change to b" |
|
194 | 193 | created new head |
|
195 | 194 | -------------- |
|
196 | 195 | test L:nm a b R:up a W: - 4 get remote change to b |
|
197 | 196 | -------------- |
|
198 | 197 | searching for copies back to rev 1 |
|
199 | 198 | unmatched files in local: |
|
200 | 199 | b |
|
201 | 200 | all copies found (* = to merge, ! = divergent, % = renamed and deleted): |
|
202 | 201 | src: 'a' -> dst: 'b' * |
|
203 | 202 | checking for directory renames |
|
204 | 203 | resolving manifests |
|
205 | 204 | branchmerge: True, force: False, partial: False |
|
206 | 205 | ancestor: 924404dff337, local: 02963e448370+, remote: f4db7e329e71 |
|
207 | 206 | preserving b for resolve of b |
|
208 | 207 | preserving rev for resolve of rev |
|
209 | 208 | starting 4 threads for background file closing (?) |
|
210 | 209 | b: local copied/moved from a -> m (premerge) |
|
211 | 210 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
212 | 211 | merging b and a to b |
|
213 | 212 | my b@02963e448370+ other a@f4db7e329e71 ancestor a@924404dff337 |
|
214 | 213 | premerge successful |
|
215 | 214 | rev: versions differ -> m (premerge) |
|
216 | 215 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
217 | 216 | merging rev |
|
218 | 217 | my rev@02963e448370+ other rev@f4db7e329e71 ancestor rev@924404dff337 |
|
219 | 218 | rev: versions differ -> m (merge) |
|
220 | 219 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
221 | 220 | my rev@02963e448370+ other rev@f4db7e329e71 ancestor rev@924404dff337 |
|
222 | 221 | launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob) |
|
223 | 222 | merge tool returned: 0 |
|
224 | 223 | 0 files updated, 2 files merged, 0 files removed, 0 files unresolved |
|
225 | 224 | (branch merge, don't forget to commit) |
|
226 | 225 | -------------- |
|
227 | 226 | M b |
|
228 | 227 | a |
|
229 | 228 | -------------- |
|
230 | 229 | |
|
231 | 230 | $ tm " " "nc a b" " " "5 get b" |
|
232 | 231 | created new head |
|
233 | 232 | -------------- |
|
234 | 233 | test L: R:nc a b W: - 5 get b |
|
235 | 234 | -------------- |
|
236 | 235 | searching for copies back to rev 1 |
|
237 | 236 | unmatched files in other: |
|
238 | 237 | b |
|
239 | 238 | all copies found (* = to merge, ! = divergent, % = renamed and deleted): |
|
240 | 239 | src: 'a' -> dst: 'b' |
|
241 | 240 | checking for directory renames |
|
242 | 241 | resolving manifests |
|
243 | 242 | branchmerge: True, force: False, partial: False |
|
244 | 243 | ancestor: 924404dff337, local: 94b33a1b7f2d+, remote: 4ce40f5aca24 |
|
245 | 244 | preserving rev for resolve of rev |
|
246 | 245 | b: remote created -> g |
|
247 | 246 | getting b |
|
248 | 247 | rev: versions differ -> m (premerge) |
|
249 | 248 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
250 | 249 | merging rev |
|
251 | 250 | my rev@94b33a1b7f2d+ other rev@4ce40f5aca24 ancestor rev@924404dff337 |
|
252 | 251 | rev: versions differ -> m (merge) |
|
253 | 252 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
254 | 253 | my rev@94b33a1b7f2d+ other rev@4ce40f5aca24 ancestor rev@924404dff337 |
|
255 | 254 | launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob) |
|
256 | 255 | merge tool returned: 0 |
|
257 | 256 | 1 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
258 | 257 | (branch merge, don't forget to commit) |
|
259 | 258 | -------------- |
|
260 | 259 | M b |
|
261 | 260 | C a |
|
262 | 261 | -------------- |
|
263 | 262 | |
|
264 | 263 | $ tm "nc a b" " " " " "6 nothing" |
|
265 | 264 | created new head |
|
266 | 265 | -------------- |
|
267 | 266 | test L:nc a b R: W: - 6 nothing |
|
268 | 267 | -------------- |
|
269 | 268 | searching for copies back to rev 1 |
|
270 | 269 | unmatched files in local: |
|
271 | 270 | b |
|
272 | 271 | all copies found (* = to merge, ! = divergent, % = renamed and deleted): |
|
273 | 272 | src: 'a' -> dst: 'b' |
|
274 | 273 | checking for directory renames |
|
275 | 274 | resolving manifests |
|
276 | 275 | branchmerge: True, force: False, partial: False |
|
277 | 276 | ancestor: 924404dff337, local: 86a2aa42fc76+, remote: 97c705ade336 |
|
278 | 277 | preserving rev for resolve of rev |
|
279 | 278 | starting 4 threads for background file closing (?) |
|
280 | 279 | rev: versions differ -> m (premerge) |
|
281 | 280 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
282 | 281 | merging rev |
|
283 | 282 | my rev@86a2aa42fc76+ other rev@97c705ade336 ancestor rev@924404dff337 |
|
284 | 283 | rev: versions differ -> m (merge) |
|
285 | 284 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
286 | 285 | my rev@86a2aa42fc76+ other rev@97c705ade336 ancestor rev@924404dff337 |
|
287 | 286 | launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob) |
|
288 | 287 | merge tool returned: 0 |
|
289 | 288 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
290 | 289 | (branch merge, don't forget to commit) |
|
291 | 290 | -------------- |
|
292 | 291 | C a |
|
293 | 292 | C b |
|
294 | 293 | -------------- |
|
295 | 294 | |
|
296 | 295 | $ tm " " "nm a b" " " "7 get b" |
|
297 | 296 | created new head |
|
298 | 297 | -------------- |
|
299 | 298 | test L: R:nm a b W: - 7 get b |
|
300 | 299 | -------------- |
|
301 | 300 | searching for copies back to rev 1 |
|
302 | 301 | unmatched files in other: |
|
303 | 302 | b |
|
304 | 303 | all copies found (* = to merge, ! = divergent, % = renamed and deleted): |
|
305 | 304 | src: 'a' -> dst: 'b' |
|
306 | 305 | checking for directory renames |
|
307 | 306 | resolving manifests |
|
308 | 307 | branchmerge: True, force: False, partial: False |
|
309 | 308 | ancestor: 924404dff337, local: 94b33a1b7f2d+, remote: bdb19105162a |
|
310 | 309 | preserving rev for resolve of rev |
|
311 | 310 | a: other deleted -> r |
|
312 | 311 | removing a |
|
313 | 312 | b: remote created -> g |
|
314 | 313 | getting b |
|
315 | 314 | rev: versions differ -> m (premerge) |
|
316 | 315 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
317 | 316 | merging rev |
|
318 | 317 | my rev@94b33a1b7f2d+ other rev@bdb19105162a ancestor rev@924404dff337 |
|
319 | 318 | rev: versions differ -> m (merge) |
|
320 | 319 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
321 | 320 | my rev@94b33a1b7f2d+ other rev@bdb19105162a ancestor rev@924404dff337 |
|
322 | 321 | launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob) |
|
323 | 322 | merge tool returned: 0 |
|
324 | 323 | 1 files updated, 1 files merged, 1 files removed, 0 files unresolved |
|
325 | 324 | (branch merge, don't forget to commit) |
|
326 | 325 | -------------- |
|
327 | 326 | M b |
|
328 | 327 | -------------- |
|
329 | 328 | |
|
330 | 329 | $ tm "nm a b" " " " " "8 nothing" |
|
331 | 330 | created new head |
|
332 | 331 | -------------- |
|
333 | 332 | test L:nm a b R: W: - 8 nothing |
|
334 | 333 | -------------- |
|
335 | 334 | searching for copies back to rev 1 |
|
336 | 335 | unmatched files in local: |
|
337 | 336 | b |
|
338 | 337 | all copies found (* = to merge, ! = divergent, % = renamed and deleted): |
|
339 | 338 | src: 'a' -> dst: 'b' |
|
340 | 339 | checking for directory renames |
|
341 | 340 | resolving manifests |
|
342 | 341 | branchmerge: True, force: False, partial: False |
|
343 | 342 | ancestor: 924404dff337, local: 02963e448370+, remote: 97c705ade336 |
|
344 | 343 | preserving rev for resolve of rev |
|
345 | 344 | starting 4 threads for background file closing (?) |
|
346 | 345 | rev: versions differ -> m (premerge) |
|
347 | 346 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
348 | 347 | merging rev |
|
349 | 348 | my rev@02963e448370+ other rev@97c705ade336 ancestor rev@924404dff337 |
|
350 | 349 | rev: versions differ -> m (merge) |
|
351 | 350 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
352 | 351 | my rev@02963e448370+ other rev@97c705ade336 ancestor rev@924404dff337 |
|
353 | 352 | launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob) |
|
354 | 353 | merge tool returned: 0 |
|
355 | 354 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
356 | 355 | (branch merge, don't forget to commit) |
|
357 | 356 | -------------- |
|
358 | 357 | C b |
|
359 | 358 | -------------- |
|
360 | 359 | |
|
361 | 360 | $ tm "um a b" "um a b" " " "9 do merge with ancestor in a" |
|
362 | 361 | created new head |
|
363 | 362 | -------------- |
|
364 | 363 | test L:um a b R:um a b W: - 9 do merge with ancestor in a |
|
365 | 364 | -------------- |
|
366 | 365 | searching for copies back to rev 1 |
|
367 | 366 | unmatched files new in both: |
|
368 | 367 | b |
|
369 | 368 | resolving manifests |
|
370 | 369 | branchmerge: True, force: False, partial: False |
|
371 | 370 | ancestor: 924404dff337, local: 62e7bf090eba+, remote: 49b6d8032493 |
|
372 | 371 | preserving b for resolve of b |
|
373 | 372 | preserving rev for resolve of rev |
|
374 | 373 | starting 4 threads for background file closing (?) |
|
375 | 374 | b: both renamed from a -> m (premerge) |
|
376 | 375 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
377 | 376 | merging b |
|
378 | 377 | my b@62e7bf090eba+ other b@49b6d8032493 ancestor a@924404dff337 |
|
379 | 378 | rev: versions differ -> m (premerge) |
|
380 | 379 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
381 | 380 | merging rev |
|
382 | 381 | my rev@62e7bf090eba+ other rev@49b6d8032493 ancestor rev@924404dff337 |
|
383 | 382 | b: both renamed from a -> m (merge) |
|
384 | 383 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
385 | 384 | my b@62e7bf090eba+ other b@49b6d8032493 ancestor a@924404dff337 |
|
386 | 385 | launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob) |
|
387 | 386 | merge tool returned: 0 |
|
388 | 387 | rev: versions differ -> m (merge) |
|
389 | 388 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
390 | 389 | my rev@62e7bf090eba+ other rev@49b6d8032493 ancestor rev@924404dff337 |
|
391 | 390 | launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob) |
|
392 | 391 | merge tool returned: 0 |
|
393 | 392 | 0 files updated, 2 files merged, 0 files removed, 0 files unresolved |
|
394 | 393 | (branch merge, don't forget to commit) |
|
395 | 394 | -------------- |
|
396 | 395 | M b |
|
397 | 396 | -------------- |
|
398 | 397 | |
|
399 | 398 | |
|
400 | 399 | m "um a c" "um x c" " " "10 do merge with no ancestor" |
|
401 | 400 | |
|
402 | 401 | $ tm "nm a b" "nm a c" " " "11 get c, keep b" |
|
403 | 402 | created new head |
|
404 | 403 | -------------- |
|
405 | 404 | test L:nm a b R:nm a c W: - 11 get c, keep b |
|
406 | 405 | -------------- |
|
407 | 406 | searching for copies back to rev 1 |
|
408 | 407 | unmatched files in local: |
|
409 | 408 | b |
|
410 | 409 | unmatched files in other: |
|
411 | 410 | c |
|
412 | 411 | all copies found (* = to merge, ! = divergent, % = renamed and deleted): |
|
413 | 412 | src: 'a' -> dst: 'b' ! |
|
414 | 413 | src: 'a' -> dst: 'c' ! |
|
415 | 414 | checking for directory renames |
|
416 | 415 | resolving manifests |
|
417 | 416 | branchmerge: True, force: False, partial: False |
|
418 | 417 | ancestor: 924404dff337, local: 02963e448370+, remote: fe905ef2c33e |
|
419 | 418 | note: possible conflict - a was renamed multiple times to: |
|
420 | 419 | b |
|
421 | 420 | c |
|
422 | 421 | preserving rev for resolve of rev |
|
423 | 422 | c: remote created -> g |
|
424 | 423 | getting c |
|
425 | 424 | rev: versions differ -> m (premerge) |
|
426 | 425 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
427 | 426 | merging rev |
|
428 | 427 | my rev@02963e448370+ other rev@fe905ef2c33e ancestor rev@924404dff337 |
|
429 | 428 | rev: versions differ -> m (merge) |
|
430 | 429 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
431 | 430 | my rev@02963e448370+ other rev@fe905ef2c33e ancestor rev@924404dff337 |
|
432 | 431 | launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob) |
|
433 | 432 | merge tool returned: 0 |
|
434 | 433 | 1 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
435 | 434 | (branch merge, don't forget to commit) |
|
436 | 435 | -------------- |
|
437 | 436 | M c |
|
438 | 437 | C b |
|
439 | 438 | -------------- |
|
440 | 439 | |
|
441 | 440 | $ tm "nc a b" "up b " " " "12 merge b no ancestor" |
|
442 | 441 | created new head |
|
443 | 442 | -------------- |
|
444 | 443 | test L:nc a b R:up b W: - 12 merge b no ancestor |
|
445 | 444 | -------------- |
|
446 | 445 | searching for copies back to rev 1 |
|
447 | 446 | unmatched files new in both: |
|
448 | 447 | b |
|
449 | 448 | resolving manifests |
|
450 | 449 | branchmerge: True, force: False, partial: False |
|
451 | 450 | ancestor: 924404dff337, local: 86a2aa42fc76+, remote: af30c7647fc7 |
|
452 | 451 | preserving b for resolve of b |
|
453 | 452 | preserving rev for resolve of rev |
|
454 | 453 | starting 4 threads for background file closing (?) |
|
455 | 454 | b: both created -> m (premerge) |
|
456 | 455 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
457 | 456 | merging b |
|
458 | 457 | my b@86a2aa42fc76+ other b@af30c7647fc7 ancestor b@000000000000 |
|
459 | 458 | rev: versions differ -> m (premerge) |
|
460 | 459 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
461 | 460 | merging rev |
|
462 | 461 | my rev@86a2aa42fc76+ other rev@af30c7647fc7 ancestor rev@924404dff337 |
|
463 | 462 | b: both created -> m (merge) |
|
464 | 463 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
465 | 464 | my b@86a2aa42fc76+ other b@af30c7647fc7 ancestor b@000000000000 |
|
466 | 465 | launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob) |
|
467 | 466 | merge tool returned: 0 |
|
468 | 467 | rev: versions differ -> m (merge) |
|
469 | 468 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
470 | 469 | my rev@86a2aa42fc76+ other rev@af30c7647fc7 ancestor rev@924404dff337 |
|
471 | 470 | launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob) |
|
472 | 471 | merge tool returned: 0 |
|
473 | 472 | 0 files updated, 2 files merged, 0 files removed, 0 files unresolved |
|
474 | 473 | (branch merge, don't forget to commit) |
|
475 | 474 | -------------- |
|
476 | 475 | M b |
|
477 | 476 | C a |
|
478 | 477 | -------------- |
|
479 | 478 | |
|
480 | 479 | $ tm "up b " "nm a b" " " "13 merge b no ancestor" |
|
481 | 480 | created new head |
|
482 | 481 | -------------- |
|
483 | 482 | test L:up b R:nm a b W: - 13 merge b no ancestor |
|
484 | 483 | -------------- |
|
485 | 484 | searching for copies back to rev 1 |
|
486 | 485 | unmatched files new in both: |
|
487 | 486 | b |
|
488 | 487 | resolving manifests |
|
489 | 488 | branchmerge: True, force: False, partial: False |
|
490 | 489 | ancestor: 924404dff337, local: 59318016310c+, remote: bdb19105162a |
|
491 | 490 | preserving b for resolve of b |
|
492 | 491 | preserving rev for resolve of rev |
|
493 | 492 | a: other deleted -> r |
|
494 | 493 | removing a |
|
495 | 494 | starting 4 threads for background file closing (?) |
|
496 | 495 | b: both created -> m (premerge) |
|
497 | 496 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
498 | 497 | merging b |
|
499 | 498 | my b@59318016310c+ other b@bdb19105162a ancestor b@000000000000 |
|
500 | 499 | rev: versions differ -> m (premerge) |
|
501 | 500 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
502 | 501 | merging rev |
|
503 | 502 | my rev@59318016310c+ other rev@bdb19105162a ancestor rev@924404dff337 |
|
504 | 503 | b: both created -> m (merge) |
|
505 | 504 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
506 | 505 | my b@59318016310c+ other b@bdb19105162a ancestor b@000000000000 |
|
507 | 506 | launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob) |
|
508 | 507 | merge tool returned: 0 |
|
509 | 508 | rev: versions differ -> m (merge) |
|
510 | 509 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
511 | 510 | my rev@59318016310c+ other rev@bdb19105162a ancestor rev@924404dff337 |
|
512 | 511 | launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob) |
|
513 | 512 | merge tool returned: 0 |
|
514 | 513 | 0 files updated, 2 files merged, 1 files removed, 0 files unresolved |
|
515 | 514 | (branch merge, don't forget to commit) |
|
516 | 515 | -------------- |
|
517 | 516 | M b |
|
518 | 517 | -------------- |
|
519 | 518 | |
|
520 | 519 | $ tm "nc a b" "up a b" " " "14 merge b no ancestor" |
|
521 | 520 | created new head |
|
522 | 521 | -------------- |
|
523 | 522 | test L:nc a b R:up a b W: - 14 merge b no ancestor |
|
524 | 523 | -------------- |
|
525 | 524 | searching for copies back to rev 1 |
|
526 | 525 | unmatched files new in both: |
|
527 | 526 | b |
|
528 | 527 | resolving manifests |
|
529 | 528 | branchmerge: True, force: False, partial: False |
|
530 | 529 | ancestor: 924404dff337, local: 86a2aa42fc76+, remote: 8dbce441892a |
|
531 | 530 | preserving b for resolve of b |
|
532 | 531 | preserving rev for resolve of rev |
|
533 | 532 | a: remote is newer -> g |
|
534 | 533 | getting a |
|
535 | 534 | b: both created -> m (premerge) |
|
536 | 535 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
537 | 536 | merging b |
|
538 | 537 | my b@86a2aa42fc76+ other b@8dbce441892a ancestor b@000000000000 |
|
539 | 538 | rev: versions differ -> m (premerge) |
|
540 | 539 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
541 | 540 | merging rev |
|
542 | 541 | my rev@86a2aa42fc76+ other rev@8dbce441892a ancestor rev@924404dff337 |
|
543 | 542 | b: both created -> m (merge) |
|
544 | 543 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
545 | 544 | my b@86a2aa42fc76+ other b@8dbce441892a ancestor b@000000000000 |
|
546 | 545 | launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob) |
|
547 | 546 | merge tool returned: 0 |
|
548 | 547 | rev: versions differ -> m (merge) |
|
549 | 548 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
550 | 549 | my rev@86a2aa42fc76+ other rev@8dbce441892a ancestor rev@924404dff337 |
|
551 | 550 | launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob) |
|
552 | 551 | merge tool returned: 0 |
|
553 | 552 | 1 files updated, 2 files merged, 0 files removed, 0 files unresolved |
|
554 | 553 | (branch merge, don't forget to commit) |
|
555 | 554 | -------------- |
|
556 | 555 | M a |
|
557 | 556 | M b |
|
558 | 557 | -------------- |
|
559 | 558 | |
|
560 | 559 | $ tm "up b " "nm a b" " " "15 merge b no ancestor, remove a" |
|
561 | 560 | created new head |
|
562 | 561 | -------------- |
|
563 | 562 | test L:up b R:nm a b W: - 15 merge b no ancestor, remove a |
|
564 | 563 | -------------- |
|
565 | 564 | searching for copies back to rev 1 |
|
566 | 565 | unmatched files new in both: |
|
567 | 566 | b |
|
568 | 567 | resolving manifests |
|
569 | 568 | branchmerge: True, force: False, partial: False |
|
570 | 569 | ancestor: 924404dff337, local: 59318016310c+, remote: bdb19105162a |
|
571 | 570 | preserving b for resolve of b |
|
572 | 571 | preserving rev for resolve of rev |
|
573 | 572 | a: other deleted -> r |
|
574 | 573 | removing a |
|
575 | 574 | starting 4 threads for background file closing (?) |
|
576 | 575 | b: both created -> m (premerge) |
|
577 | 576 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
578 | 577 | merging b |
|
579 | 578 | my b@59318016310c+ other b@bdb19105162a ancestor b@000000000000 |
|
580 | 579 | rev: versions differ -> m (premerge) |
|
581 | 580 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
582 | 581 | merging rev |
|
583 | 582 | my rev@59318016310c+ other rev@bdb19105162a ancestor rev@924404dff337 |
|
584 | 583 | b: both created -> m (merge) |
|
585 | 584 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
586 | 585 | my b@59318016310c+ other b@bdb19105162a ancestor b@000000000000 |
|
587 | 586 | launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob) |
|
588 | 587 | merge tool returned: 0 |
|
589 | 588 | rev: versions differ -> m (merge) |
|
590 | 589 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
591 | 590 | my rev@59318016310c+ other rev@bdb19105162a ancestor rev@924404dff337 |
|
592 | 591 | launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob) |
|
593 | 592 | merge tool returned: 0 |
|
594 | 593 | 0 files updated, 2 files merged, 1 files removed, 0 files unresolved |
|
595 | 594 | (branch merge, don't forget to commit) |
|
596 | 595 | -------------- |
|
597 | 596 | M b |
|
598 | 597 | -------------- |
|
599 | 598 | |
|
600 | 599 | $ tm "nc a b" "up a b" " " "16 get a, merge b no ancestor" |
|
601 | 600 | created new head |
|
602 | 601 | -------------- |
|
603 | 602 | test L:nc a b R:up a b W: - 16 get a, merge b no ancestor |
|
604 | 603 | -------------- |
|
605 | 604 | searching for copies back to rev 1 |
|
606 | 605 | unmatched files new in both: |
|
607 | 606 | b |
|
608 | 607 | resolving manifests |
|
609 | 608 | branchmerge: True, force: False, partial: False |
|
610 | 609 | ancestor: 924404dff337, local: 86a2aa42fc76+, remote: 8dbce441892a |
|
611 | 610 | preserving b for resolve of b |
|
612 | 611 | preserving rev for resolve of rev |
|
613 | 612 | a: remote is newer -> g |
|
614 | 613 | getting a |
|
615 | 614 | b: both created -> m (premerge) |
|
616 | 615 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
617 | 616 | merging b |
|
618 | 617 | my b@86a2aa42fc76+ other b@8dbce441892a ancestor b@000000000000 |
|
619 | 618 | rev: versions differ -> m (premerge) |
|
620 | 619 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
621 | 620 | merging rev |
|
622 | 621 | my rev@86a2aa42fc76+ other rev@8dbce441892a ancestor rev@924404dff337 |
|
623 | 622 | b: both created -> m (merge) |
|
624 | 623 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
625 | 624 | my b@86a2aa42fc76+ other b@8dbce441892a ancestor b@000000000000 |
|
626 | 625 | launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob) |
|
627 | 626 | merge tool returned: 0 |
|
628 | 627 | rev: versions differ -> m (merge) |
|
629 | 628 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
630 | 629 | my rev@86a2aa42fc76+ other rev@8dbce441892a ancestor rev@924404dff337 |
|
631 | 630 | launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob) |
|
632 | 631 | merge tool returned: 0 |
|
633 | 632 | 1 files updated, 2 files merged, 0 files removed, 0 files unresolved |
|
634 | 633 | (branch merge, don't forget to commit) |
|
635 | 634 | -------------- |
|
636 | 635 | M a |
|
637 | 636 | M b |
|
638 | 637 | -------------- |
|
639 | 638 | |
|
640 | 639 | $ tm "up a b" "nc a b" " " "17 keep a, merge b no ancestor" |
|
641 | 640 | created new head |
|
642 | 641 | -------------- |
|
643 | 642 | test L:up a b R:nc a b W: - 17 keep a, merge b no ancestor |
|
644 | 643 | -------------- |
|
645 | 644 | searching for copies back to rev 1 |
|
646 | 645 | unmatched files new in both: |
|
647 | 646 | b |
|
648 | 647 | resolving manifests |
|
649 | 648 | branchmerge: True, force: False, partial: False |
|
650 | 649 | ancestor: 924404dff337, local: 0b76e65c8289+, remote: 4ce40f5aca24 |
|
651 | 650 | preserving b for resolve of b |
|
652 | 651 | preserving rev for resolve of rev |
|
653 | 652 | starting 4 threads for background file closing (?) |
|
654 | 653 | b: both created -> m (premerge) |
|
655 | 654 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
656 | 655 | merging b |
|
657 | 656 | my b@0b76e65c8289+ other b@4ce40f5aca24 ancestor b@000000000000 |
|
658 | 657 | rev: versions differ -> m (premerge) |
|
659 | 658 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
660 | 659 | merging rev |
|
661 | 660 | my rev@0b76e65c8289+ other rev@4ce40f5aca24 ancestor rev@924404dff337 |
|
662 | 661 | b: both created -> m (merge) |
|
663 | 662 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
664 | 663 | my b@0b76e65c8289+ other b@4ce40f5aca24 ancestor b@000000000000 |
|
665 | 664 | launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob) |
|
666 | 665 | merge tool returned: 0 |
|
667 | 666 | rev: versions differ -> m (merge) |
|
668 | 667 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
669 | 668 | my rev@0b76e65c8289+ other rev@4ce40f5aca24 ancestor rev@924404dff337 |
|
670 | 669 | launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob) |
|
671 | 670 | merge tool returned: 0 |
|
672 | 671 | 0 files updated, 2 files merged, 0 files removed, 0 files unresolved |
|
673 | 672 | (branch merge, don't forget to commit) |
|
674 | 673 | -------------- |
|
675 | 674 | M b |
|
676 | 675 | C a |
|
677 | 676 | -------------- |
|
678 | 677 | |
|
679 | 678 | $ tm "nm a b" "up a b" " " "18 merge b no ancestor" |
|
680 | 679 | created new head |
|
681 | 680 | -------------- |
|
682 | 681 | test L:nm a b R:up a b W: - 18 merge b no ancestor |
|
683 | 682 | -------------- |
|
684 | 683 | searching for copies back to rev 1 |
|
685 | 684 | unmatched files new in both: |
|
686 | 685 | b |
|
687 | 686 | resolving manifests |
|
688 | 687 | branchmerge: True, force: False, partial: False |
|
689 | 688 | ancestor: 924404dff337, local: 02963e448370+, remote: 8dbce441892a |
|
690 | 689 | preserving b for resolve of b |
|
691 | 690 | preserving rev for resolve of rev |
|
692 | 691 | starting 4 threads for background file closing (?) |
|
693 | 692 | a: prompt deleted/changed -> m (premerge) |
|
694 | 693 | picked tool ':prompt' for a (binary False symlink False changedelete True) |
|
695 | 694 | file 'a' was deleted in local [working copy] but was modified in other [merge rev]. |
|
696 | 695 | What do you want to do? |
|
697 | 696 | use (c)hanged version, leave (d)eleted, or leave (u)nresolved? u |
|
698 | 697 | b: both created -> m (premerge) |
|
699 | 698 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
700 | 699 | merging b |
|
701 | 700 | my b@02963e448370+ other b@8dbce441892a ancestor b@000000000000 |
|
702 | 701 | rev: versions differ -> m (premerge) |
|
703 | 702 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
704 | 703 | merging rev |
|
705 | 704 | my rev@02963e448370+ other rev@8dbce441892a ancestor rev@924404dff337 |
|
706 | 705 | b: both created -> m (merge) |
|
707 | 706 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
708 | 707 | my b@02963e448370+ other b@8dbce441892a ancestor b@000000000000 |
|
709 | 708 | launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob) |
|
710 | 709 | merge tool returned: 0 |
|
711 | 710 | rev: versions differ -> m (merge) |
|
712 | 711 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
713 | 712 | my rev@02963e448370+ other rev@8dbce441892a ancestor rev@924404dff337 |
|
714 | 713 | launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob) |
|
715 | 714 | merge tool returned: 0 |
|
716 | 715 | 0 files updated, 2 files merged, 0 files removed, 1 files unresolved |
|
717 | 716 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
|
718 | 717 | -------------- |
|
719 | 718 | M a |
|
720 | 719 | M b |
|
721 | 720 | abort: unresolved merge conflicts (see 'hg help resolve') |
|
722 | 721 | -------------- |
|
723 | 722 | |
|
724 | 723 | $ tm "up a b" "nm a b" " " "19 merge b no ancestor, prompt remove a" |
|
725 | 724 | created new head |
|
726 | 725 | -------------- |
|
727 | 726 | test L:up a b R:nm a b W: - 19 merge b no ancestor, prompt remove a |
|
728 | 727 | -------------- |
|
729 | 728 | searching for copies back to rev 1 |
|
730 | 729 | unmatched files new in both: |
|
731 | 730 | b |
|
732 | 731 | resolving manifests |
|
733 | 732 | branchmerge: True, force: False, partial: False |
|
734 | 733 | ancestor: 924404dff337, local: 0b76e65c8289+, remote: bdb19105162a |
|
735 | 734 | preserving a for resolve of a |
|
736 | 735 | preserving b for resolve of b |
|
737 | 736 | preserving rev for resolve of rev |
|
738 | 737 | starting 4 threads for background file closing (?) |
|
739 | 738 | a: prompt changed/deleted -> m (premerge) |
|
740 | 739 | picked tool ':prompt' for a (binary False symlink False changedelete True) |
|
741 | 740 | file 'a' was deleted in other [merge rev] but was modified in local [working copy]. |
|
742 | 741 | What do you want to do? |
|
743 | 742 | use (c)hanged version, (d)elete, or leave (u)nresolved? u |
|
744 | 743 | b: both created -> m (premerge) |
|
745 | 744 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
746 | 745 | merging b |
|
747 | 746 | my b@0b76e65c8289+ other b@bdb19105162a ancestor b@000000000000 |
|
748 | 747 | rev: versions differ -> m (premerge) |
|
749 | 748 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
750 | 749 | merging rev |
|
751 | 750 | my rev@0b76e65c8289+ other rev@bdb19105162a ancestor rev@924404dff337 |
|
752 | 751 | b: both created -> m (merge) |
|
753 | 752 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
754 | 753 | my b@0b76e65c8289+ other b@bdb19105162a ancestor b@000000000000 |
|
755 | 754 | launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob) |
|
756 | 755 | merge tool returned: 0 |
|
757 | 756 | rev: versions differ -> m (merge) |
|
758 | 757 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
759 | 758 | my rev@0b76e65c8289+ other rev@bdb19105162a ancestor rev@924404dff337 |
|
760 | 759 | launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob) |
|
761 | 760 | merge tool returned: 0 |
|
762 | 761 | 0 files updated, 2 files merged, 0 files removed, 1 files unresolved |
|
763 | 762 | use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
|
764 | 763 | -------------- |
|
765 | 764 | M b |
|
766 | 765 | C a |
|
767 | 766 | abort: unresolved merge conflicts (see 'hg help resolve') |
|
768 | 767 | -------------- |
|
769 | 768 | |
|
770 | 769 | $ tm "up a " "um a b" " " "20 merge a and b to b, remove a" |
|
771 | 770 | created new head |
|
772 | 771 | -------------- |
|
773 | 772 | test L:up a R:um a b W: - 20 merge a and b to b, remove a |
|
774 | 773 | -------------- |
|
775 | 774 | searching for copies back to rev 1 |
|
776 | 775 | unmatched files in other: |
|
777 | 776 | b |
|
778 | 777 | all copies found (* = to merge, ! = divergent, % = renamed and deleted): |
|
779 | 778 | src: 'a' -> dst: 'b' * |
|
780 | 779 | checking for directory renames |
|
781 | 780 | resolving manifests |
|
782 | 781 | branchmerge: True, force: False, partial: False |
|
783 | 782 | ancestor: 924404dff337, local: e300d1c794ec+, remote: 49b6d8032493 |
|
784 | 783 | preserving a for resolve of b |
|
785 | 784 | preserving rev for resolve of rev |
|
786 | 785 | removing a |
|
787 | 786 | starting 4 threads for background file closing (?) |
|
788 | 787 | b: remote moved from a -> m (premerge) |
|
789 | 788 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
790 | 789 | merging a and b to b |
|
791 | 790 | my b@e300d1c794ec+ other b@49b6d8032493 ancestor a@924404dff337 |
|
792 | 791 | rev: versions differ -> m (premerge) |
|
793 | 792 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
794 | 793 | merging rev |
|
795 | 794 | my rev@e300d1c794ec+ other rev@49b6d8032493 ancestor rev@924404dff337 |
|
796 | 795 | b: remote moved from a -> m (merge) |
|
797 | 796 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
798 | 797 | my b@e300d1c794ec+ other b@49b6d8032493 ancestor a@924404dff337 |
|
799 | 798 | launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob) |
|
800 | 799 | merge tool returned: 0 |
|
801 | 800 | rev: versions differ -> m (merge) |
|
802 | 801 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
803 | 802 | my rev@e300d1c794ec+ other rev@49b6d8032493 ancestor rev@924404dff337 |
|
804 | 803 | launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob) |
|
805 | 804 | merge tool returned: 0 |
|
806 | 805 | 0 files updated, 2 files merged, 0 files removed, 0 files unresolved |
|
807 | 806 | (branch merge, don't forget to commit) |
|
808 | 807 | -------------- |
|
809 | 808 | M b |
|
810 | 809 | a |
|
811 | 810 | -------------- |
|
812 | 811 | |
|
813 | 812 | $ tm "um a b" "up a " " " "21 merge a and b to b" |
|
814 | 813 | created new head |
|
815 | 814 | -------------- |
|
816 | 815 | test L:um a b R:up a W: - 21 merge a and b to b |
|
817 | 816 | -------------- |
|
818 | 817 | searching for copies back to rev 1 |
|
819 | 818 | unmatched files in local: |
|
820 | 819 | b |
|
821 | 820 | all copies found (* = to merge, ! = divergent, % = renamed and deleted): |
|
822 | 821 | src: 'a' -> dst: 'b' * |
|
823 | 822 | checking for directory renames |
|
824 | 823 | resolving manifests |
|
825 | 824 | branchmerge: True, force: False, partial: False |
|
826 | 825 | ancestor: 924404dff337, local: 62e7bf090eba+, remote: f4db7e329e71 |
|
827 | 826 | preserving b for resolve of b |
|
828 | 827 | preserving rev for resolve of rev |
|
829 | 828 | starting 4 threads for background file closing (?) |
|
830 | 829 | b: local copied/moved from a -> m (premerge) |
|
831 | 830 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
832 | 831 | merging b and a to b |
|
833 | 832 | my b@62e7bf090eba+ other a@f4db7e329e71 ancestor a@924404dff337 |
|
834 | 833 | rev: versions differ -> m (premerge) |
|
835 | 834 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
836 | 835 | merging rev |
|
837 | 836 | my rev@62e7bf090eba+ other rev@f4db7e329e71 ancestor rev@924404dff337 |
|
838 | 837 | b: local copied/moved from a -> m (merge) |
|
839 | 838 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
840 | 839 | my b@62e7bf090eba+ other a@f4db7e329e71 ancestor a@924404dff337 |
|
841 | 840 | launching merge tool: * ../merge *$TESTTMP/t/t/b* * * (glob) |
|
842 | 841 | merge tool returned: 0 |
|
843 | 842 | rev: versions differ -> m (merge) |
|
844 | 843 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
845 | 844 | my rev@62e7bf090eba+ other rev@f4db7e329e71 ancestor rev@924404dff337 |
|
846 | 845 | launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob) |
|
847 | 846 | merge tool returned: 0 |
|
848 | 847 | 0 files updated, 2 files merged, 0 files removed, 0 files unresolved |
|
849 | 848 | (branch merge, don't forget to commit) |
|
850 | 849 | -------------- |
|
851 | 850 | M b |
|
852 | 851 | a |
|
853 | 852 | -------------- |
|
854 | 853 | |
|
855 | 854 | |
|
856 | 855 | m "nm a b" "um x a" " " "22 get a, keep b" |
|
857 | 856 | |
|
858 | 857 | $ tm "nm a b" "up a c" " " "23 get c, keep b" |
|
859 | 858 | created new head |
|
860 | 859 | -------------- |
|
861 | 860 | test L:nm a b R:up a c W: - 23 get c, keep b |
|
862 | 861 | -------------- |
|
863 | 862 | searching for copies back to rev 1 |
|
864 | 863 | unmatched files in local: |
|
865 | 864 | b |
|
866 | 865 | unmatched files in other: |
|
867 | 866 | c |
|
868 | 867 | all copies found (* = to merge, ! = divergent, % = renamed and deleted): |
|
869 | 868 | src: 'a' -> dst: 'b' * |
|
870 | 869 | checking for directory renames |
|
871 | 870 | resolving manifests |
|
872 | 871 | branchmerge: True, force: False, partial: False |
|
873 | 872 | ancestor: 924404dff337, local: 02963e448370+, remote: 2b958612230f |
|
874 | 873 | preserving b for resolve of b |
|
875 | 874 | preserving rev for resolve of rev |
|
876 | 875 | c: remote created -> g |
|
877 | 876 | getting c |
|
878 | 877 | b: local copied/moved from a -> m (premerge) |
|
879 | 878 | picked tool '* ../merge' for b (binary False symlink False changedelete False) (glob) |
|
880 | 879 | merging b and a to b |
|
881 | 880 | my b@02963e448370+ other a@2b958612230f ancestor a@924404dff337 |
|
882 | 881 | premerge successful |
|
883 | 882 | rev: versions differ -> m (premerge) |
|
884 | 883 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
885 | 884 | merging rev |
|
886 | 885 | my rev@02963e448370+ other rev@2b958612230f ancestor rev@924404dff337 |
|
887 | 886 | rev: versions differ -> m (merge) |
|
888 | 887 | picked tool '* ../merge' for rev (binary False symlink False changedelete False) (glob) |
|
889 | 888 | my rev@02963e448370+ other rev@2b958612230f ancestor rev@924404dff337 |
|
890 | 889 | launching merge tool: * ../merge *$TESTTMP/t/t/rev* * * (glob) |
|
891 | 890 | merge tool returned: 0 |
|
892 | 891 | 1 files updated, 2 files merged, 0 files removed, 0 files unresolved |
|
893 | 892 | (branch merge, don't forget to commit) |
|
894 | 893 | -------------- |
|
895 | 894 | M b |
|
896 | 895 | a |
|
897 | 896 | M c |
|
898 | 897 | -------------- |
|
899 | 898 | |
|
900 | 899 | |
|
901 | 900 | $ cd .. |
|
902 | 901 | |
|
903 | 902 | |
|
904 | 903 | Systematic and terse testing of merge merges and ancestor calculation: |
|
905 | 904 | |
|
906 | 905 | Expected result: |
|
907 | 906 | |
|
908 | 907 | \ a m1 m2 dst |
|
909 | 908 | 0 - f f f "versions differ" |
|
910 | 909 | 1 f g g g "versions differ" |
|
911 | 910 | 2 f f f f "versions differ" |
|
912 | 911 | 3 f f g f+g "remote copied to " + f |
|
913 | 912 | 4 f f g g "remote moved to " + f |
|
914 | 913 | 5 f g f f+g "local copied to " + f2 |
|
915 | 914 | 6 f g f g "local moved to " + f2 |
|
916 | 915 | 7 - (f) f f "remote differs from untracked local" |
|
917 | 916 | 8 f (f) f f "remote differs from untracked local" |
|
918 | 917 | |
|
919 | 918 | $ hg init ancestortest |
|
920 | 919 | $ cd ancestortest |
|
921 | 920 | $ for x in 1 2 3 4 5 6 8; do mkdir $x; echo a > $x/f; done |
|
922 | 921 | $ hg ci -Aqm "a" |
|
923 | 922 | $ mkdir 0 |
|
924 | 923 | $ touch 0/f |
|
925 | 924 | $ hg mv 1/f 1/g |
|
926 | 925 | $ hg cp 5/f 5/g |
|
927 | 926 | $ hg mv 6/f 6/g |
|
928 | 927 | $ hg rm 8/f |
|
929 | 928 | $ for x in */*; do echo m1 > $x; done |
|
930 | 929 | $ hg ci -Aqm "m1" |
|
931 | 930 | $ hg up -qr0 |
|
932 | 931 | $ mkdir 0 7 |
|
933 | 932 | $ touch 0/f 7/f |
|
934 | 933 | $ hg mv 1/f 1/g |
|
935 | 934 | $ hg cp 3/f 3/g |
|
936 | 935 | $ hg mv 4/f 4/g |
|
937 | 936 | $ for x in */*; do echo m2 > $x; done |
|
938 | 937 | $ hg ci -Aqm "m2" |
|
939 | 938 | $ hg up -qr1 |
|
940 | 939 | $ mkdir 7 8 |
|
941 | 940 | $ echo m > 7/f |
|
942 | 941 | $ echo m > 8/f |
|
943 | 942 | $ hg merge -f --tool internal:dump -v --debug -r2 | sed '/^resolving manifests/,$d' 2> /dev/null |
|
944 | 943 | searching for copies back to rev 1 |
|
945 | 944 | unmatched files in local: |
|
946 | 945 | 5/g |
|
947 | 946 | 6/g |
|
948 | 947 | unmatched files in other: |
|
949 | 948 | 3/g |
|
950 | 949 | 4/g |
|
951 | 950 | 7/f |
|
952 | 951 | unmatched files new in both: |
|
953 | 952 | 0/f |
|
954 | 953 | 1/g |
|
955 | 954 | all copies found (* = to merge, ! = divergent, % = renamed and deleted): |
|
956 | 955 | src: '3/f' -> dst: '3/g' * |
|
957 | 956 | src: '4/f' -> dst: '4/g' * |
|
958 | 957 | src: '5/f' -> dst: '5/g' * |
|
959 | 958 | src: '6/f' -> dst: '6/g' * |
|
960 | 959 | checking for directory renames |
|
961 | 960 | $ hg mani |
|
962 | 961 | 0/f |
|
963 | 962 | 1/g |
|
964 | 963 | 2/f |
|
965 | 964 | 3/f |
|
966 | 965 | 4/f |
|
967 | 966 | 5/f |
|
968 | 967 | 5/g |
|
969 | 968 | 6/g |
|
970 | 969 | $ for f in */*; do echo $f:; cat $f; done |
|
971 | 970 | 0/f: |
|
972 | 971 | m1 |
|
973 | 972 | 0/f.base: |
|
974 | 973 | 0/f.local: |
|
975 | 974 | m1 |
|
976 | 975 | 0/f.orig: |
|
977 | 976 | m1 |
|
978 | 977 | 0/f.other: |
|
979 | 978 | m2 |
|
980 | 979 | 1/g: |
|
981 | 980 | m1 |
|
982 | 981 | 1/g.base: |
|
983 | 982 | a |
|
984 | 983 | 1/g.local: |
|
985 | 984 | m1 |
|
986 | 985 | 1/g.orig: |
|
987 | 986 | m1 |
|
988 | 987 | 1/g.other: |
|
989 | 988 | m2 |
|
990 | 989 | 2/f: |
|
991 | 990 | m1 |
|
992 | 991 | 2/f.base: |
|
993 | 992 | a |
|
994 | 993 | 2/f.local: |
|
995 | 994 | m1 |
|
996 | 995 | 2/f.orig: |
|
997 | 996 | m1 |
|
998 | 997 | 2/f.other: |
|
999 | 998 | m2 |
|
1000 | 999 | 3/f: |
|
1001 | 1000 | m1 |
|
1002 | 1001 | 3/f.base: |
|
1003 | 1002 | a |
|
1004 | 1003 | 3/f.local: |
|
1005 | 1004 | m1 |
|
1006 | 1005 | 3/f.orig: |
|
1007 | 1006 | m1 |
|
1008 | 1007 | 3/f.other: |
|
1009 | 1008 | m2 |
|
1010 | 1009 | 3/g: |
|
1011 | 1010 | m1 |
|
1012 | 1011 | 3/g.base: |
|
1013 | 1012 | a |
|
1014 | 1013 | 3/g.local: |
|
1015 | 1014 | m1 |
|
1016 | 1015 | 3/g.orig: |
|
1017 | 1016 | m1 |
|
1018 | 1017 | 3/g.other: |
|
1019 | 1018 | m2 |
|
1020 | 1019 | 4/g: |
|
1021 | 1020 | m1 |
|
1022 | 1021 | 4/g.base: |
|
1023 | 1022 | a |
|
1024 | 1023 | 4/g.local: |
|
1025 | 1024 | m1 |
|
1026 | 1025 | 4/g.orig: |
|
1027 | 1026 | m1 |
|
1028 | 1027 | 4/g.other: |
|
1029 | 1028 | m2 |
|
1030 | 1029 | 5/f: |
|
1031 | 1030 | m1 |
|
1032 | 1031 | 5/f.base: |
|
1033 | 1032 | a |
|
1034 | 1033 | 5/f.local: |
|
1035 | 1034 | m1 |
|
1036 | 1035 | 5/f.orig: |
|
1037 | 1036 | m1 |
|
1038 | 1037 | 5/f.other: |
|
1039 | 1038 | m2 |
|
1040 | 1039 | 5/g: |
|
1041 | 1040 | m1 |
|
1042 | 1041 | 5/g.base: |
|
1043 | 1042 | a |
|
1044 | 1043 | 5/g.local: |
|
1045 | 1044 | m1 |
|
1046 | 1045 | 5/g.orig: |
|
1047 | 1046 | m1 |
|
1048 | 1047 | 5/g.other: |
|
1049 | 1048 | m2 |
|
1050 | 1049 | 6/g: |
|
1051 | 1050 | m1 |
|
1052 | 1051 | 6/g.base: |
|
1053 | 1052 | a |
|
1054 | 1053 | 6/g.local: |
|
1055 | 1054 | m1 |
|
1056 | 1055 | 6/g.orig: |
|
1057 | 1056 | m1 |
|
1058 | 1057 | 6/g.other: |
|
1059 | 1058 | m2 |
|
1060 | 1059 | 7/f: |
|
1061 | 1060 | m |
|
1062 | 1061 | 7/f.base: |
|
1063 | 1062 | 7/f.local: |
|
1064 | 1063 | m |
|
1065 | 1064 | 7/f.orig: |
|
1066 | 1065 | m |
|
1067 | 1066 | 7/f.other: |
|
1068 | 1067 | m2 |
|
1069 | 1068 | 8/f: |
|
1070 | 1069 | m2 |
|
1071 | 1070 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now