##// END OF EJS Templates
tests: add newfilenode test case in test-merge-changedelete.t
Pulkit Goyal -
r46191:64461b43 default
parent child Browse files
Show More
@@ -1,1096 +1,1108 b''
1 #testcases newfilenode old
2
3 #if newfilenode
4 Enable the config option
5 ------------------------
6
7 $ cat >> $HGRCPATH <<EOF
8 > [experimental]
9 > merge-track-salvaged = True
10 > EOF
11 #endif
12
1 13 Tests for change/delete conflicts, including:
2 14 b5605d88dc27: Make ui.prompt repeat on "unrecognized response" again
3 15 (issue897)
4 16
5 17 840e2b315c1f: Fix misleading error and prompts during update/merge
6 18 (issue556)
7 19
8 20 Make sure HGMERGE doesn't interfere with the test
9 21 $ unset HGMERGE
10 22
11 23 $ status() {
12 24 > echo "--- status ---"
13 25 > hg st -A file1 file2 file3
14 26 > echo "--- resolve --list ---"
15 27 > hg resolve --list file1 file2 file3
16 28 > echo "--- debugmergestate ---"
17 29 > hg debugmergestate
18 30 > for file in file1 file2 file3; do
19 31 > if [ -f $file ]; then
20 32 > echo "--- $file ---"
21 33 > cat $file
22 34 > else
23 35 > echo "*** $file does not exist"
24 36 > fi
25 37 > done
26 38 > }
27 39
28 40 $ hg init repo
29 41 $ cd repo
30 42
31 43 $ echo 1 > file1
32 44 $ echo 2 > file2
33 45 $ echo 3 > file3
34 46 $ hg ci -Am 'added files'
35 47 adding file1
36 48 adding file2
37 49 adding file3
38 50
39 51 $ hg rm file1
40 52 $ echo changed >> file2
41 53 $ echo changed1 >> file3
42 54 $ hg ci -m 'removed file1, changed file2, changed file3'
43 55
44 56 $ hg co 0
45 57 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
46 58
47 59 $ echo changed >> file1
48 60 $ hg rm file2
49 61 $ echo changed2 >> file3
50 62 $ hg ci -m 'changed file1, removed file2, changed file3'
51 63 created new head
52 64
53 65
54 66 Non-interactive merge:
55 67
56 68 $ hg merge -y
57 69 file 'file1' was deleted in other [merge rev] but was modified in local [working copy].
58 70 You can use (c)hanged version, (d)elete, or leave (u)nresolved.
59 71 What do you want to do? u
60 72 file 'file2' was deleted in local [working copy] but was modified in other [merge rev].
61 73 You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved.
62 74 What do you want to do? u
63 75 merging file3
64 76 warning: conflicts while merging file3! (edit, then use 'hg resolve --mark')
65 77 0 files updated, 0 files merged, 0 files removed, 3 files unresolved
66 78 use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon
67 79 [1]
68 80
69 81 $ status
70 82 --- status ---
71 83 M file2
72 84 M file3
73 85 C file1
74 86 --- resolve --list ---
75 87 U file1
76 88 U file2
77 89 U file3
78 90 --- debugmergestate ---
79 91 local (working copy): 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
80 92 other (merge rev): 10f9a0a634e82080907e62f075ab119cbc565ea6
81 93 file: file1 (state "u")
82 94 local path: file1 (hash 60b27f004e454aca81b0480209cce5081ec52390, flags "")
83 95 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
84 96 other path: file1 (node 0000000000000000000000000000000000000000)
85 97 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
86 98 extra: merge-removal-candidate = yes
87 99 file: file2 (state "u")
88 100 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
89 101 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
90 102 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
91 103 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
92 104 extra: merge-removal-candidate = yes
93 105 file: file3 (state "u")
94 106 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
95 107 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
96 108 other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb)
97 109 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
98 110 --- file1 ---
99 111 1
100 112 changed
101 113 --- file2 ---
102 114 2
103 115 changed
104 116 --- file3 ---
105 117 3
106 118 <<<<<<< working copy: 13910f48cf7b - test: changed file1, removed file2, chan...
107 119 changed2
108 120 =======
109 121 changed1
110 122 >>>>>>> merge rev: 10f9a0a634e8 - test: removed file1, changed file2, chan...
111 123
112 124
113 125 Interactive merge:
114 126
115 127 $ hg co -C
116 128 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
117 129 updated to "13910f48cf7b: changed file1, removed file2, changed file3"
118 130 1 other heads for branch "default"
119 131
120 132 $ hg merge --config ui.interactive=true <<EOF
121 133 > c
122 134 > d
123 135 > EOF
124 136 file 'file1' was deleted in other [merge rev] but was modified in local [working copy].
125 137 You can use (c)hanged version, (d)elete, or leave (u)nresolved.
126 138 What do you want to do? c
127 139 file 'file2' was deleted in local [working copy] but was modified in other [merge rev].
128 140 You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved.
129 141 What do you want to do? d
130 142 merging file3
131 143 warning: conflicts while merging file3! (edit, then use 'hg resolve --mark')
132 144 0 files updated, 2 files merged, 0 files removed, 1 files unresolved
133 145 use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon
134 146 [1]
135 147
136 148 $ status
137 149 --- status ---
138 150 file2: * (glob)
139 151 M file3
140 152 C file1
141 153 --- resolve --list ---
142 154 R file1
143 155 R file2
144 156 U file3
145 157 --- debugmergestate ---
146 158 local (working copy): 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
147 159 other (merge rev): 10f9a0a634e82080907e62f075ab119cbc565ea6
148 160 file: file1 (state "r")
149 161 local path: file1 (hash 60b27f004e454aca81b0480209cce5081ec52390, flags "")
150 162 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
151 163 other path: file1 (node 0000000000000000000000000000000000000000)
152 164 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
153 165 extra: merge-removal-candidate = yes
154 166 file: file2 (state "r")
155 167 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
156 168 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
157 169 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
158 170 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
159 171 extra: merge-removal-candidate = yes
160 172 file: file3 (state "u")
161 173 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
162 174 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
163 175 other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb)
164 176 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
165 177 --- file1 ---
166 178 1
167 179 changed
168 180 *** file2 does not exist
169 181 --- file3 ---
170 182 3
171 183 <<<<<<< working copy: 13910f48cf7b - test: changed file1, removed file2, chan...
172 184 changed2
173 185 =======
174 186 changed1
175 187 >>>>>>> merge rev: 10f9a0a634e8 - test: removed file1, changed file2, chan...
176 188
177 189
178 190 Interactive merge with bad input:
179 191
180 192 $ hg co -C
181 193 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
182 194 updated to "13910f48cf7b: changed file1, removed file2, changed file3"
183 195 1 other heads for branch "default"
184 196
185 197 $ hg merge --config ui.interactive=true <<EOF
186 198 > foo
187 199 > bar
188 200 > d
189 201 > baz
190 202 > c
191 203 > EOF
192 204 file 'file1' was deleted in other [merge rev] but was modified in local [working copy].
193 205 You can use (c)hanged version, (d)elete, or leave (u)nresolved.
194 206 What do you want to do? foo
195 207 unrecognized response
196 208 file 'file1' was deleted in other [merge rev] but was modified in local [working copy].
197 209 You can use (c)hanged version, (d)elete, or leave (u)nresolved.
198 210 What do you want to do? bar
199 211 unrecognized response
200 212 file 'file1' was deleted in other [merge rev] but was modified in local [working copy].
201 213 You can use (c)hanged version, (d)elete, or leave (u)nresolved.
202 214 What do you want to do? d
203 215 file 'file2' was deleted in local [working copy] but was modified in other [merge rev].
204 216 You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved.
205 217 What do you want to do? baz
206 218 unrecognized response
207 219 file 'file2' was deleted in local [working copy] but was modified in other [merge rev].
208 220 You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved.
209 221 What do you want to do? c
210 222 merging file3
211 223 warning: conflicts while merging file3! (edit, then use 'hg resolve --mark')
212 224 0 files updated, 1 files merged, 1 files removed, 1 files unresolved
213 225 use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon
214 226 [1]
215 227
216 228 $ status
217 229 --- status ---
218 230 M file2
219 231 M file3
220 232 R file1
221 233 --- resolve --list ---
222 234 R file1
223 235 R file2
224 236 U file3
225 237 --- debugmergestate ---
226 238 local (working copy): 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
227 239 other (merge rev): 10f9a0a634e82080907e62f075ab119cbc565ea6
228 240 file: file1 (state "r")
229 241 local path: file1 (hash 60b27f004e454aca81b0480209cce5081ec52390, flags "")
230 242 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
231 243 other path: file1 (node 0000000000000000000000000000000000000000)
232 244 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
233 245 extra: merge-removal-candidate = yes
234 246 file: file2 (state "r")
235 247 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
236 248 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
237 249 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
238 250 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
239 251 extra: merge-removal-candidate = yes
240 252 file: file3 (state "u")
241 253 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
242 254 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
243 255 other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb)
244 256 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
245 257 *** file1 does not exist
246 258 --- file2 ---
247 259 2
248 260 changed
249 261 --- file3 ---
250 262 3
251 263 <<<<<<< working copy: 13910f48cf7b - test: changed file1, removed file2, chan...
252 264 changed2
253 265 =======
254 266 changed1
255 267 >>>>>>> merge rev: 10f9a0a634e8 - test: removed file1, changed file2, chan...
256 268
257 269
258 270 Interactive merge with not enough input:
259 271
260 272 $ hg co -C
261 273 2 files updated, 0 files merged, 1 files removed, 0 files unresolved
262 274 updated to "13910f48cf7b: changed file1, removed file2, changed file3"
263 275 1 other heads for branch "default"
264 276
265 277 $ hg merge --config ui.interactive=true <<EOF
266 278 > d
267 279 > EOF
268 280 file 'file1' was deleted in other [merge rev] but was modified in local [working copy].
269 281 You can use (c)hanged version, (d)elete, or leave (u)nresolved.
270 282 What do you want to do? d
271 283 file 'file2' was deleted in local [working copy] but was modified in other [merge rev].
272 284 You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved.
273 285 What do you want to do?
274 286 merging file3
275 287 warning: conflicts while merging file3! (edit, then use 'hg resolve --mark')
276 288 0 files updated, 0 files merged, 1 files removed, 2 files unresolved
277 289 use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon
278 290 [1]
279 291
280 292 $ status
281 293 --- status ---
282 294 M file2
283 295 M file3
284 296 R file1
285 297 --- resolve --list ---
286 298 R file1
287 299 U file2
288 300 U file3
289 301 --- debugmergestate ---
290 302 local (working copy): 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
291 303 other (merge rev): 10f9a0a634e82080907e62f075ab119cbc565ea6
292 304 file: file1 (state "r")
293 305 local path: file1 (hash 60b27f004e454aca81b0480209cce5081ec52390, flags "")
294 306 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
295 307 other path: file1 (node 0000000000000000000000000000000000000000)
296 308 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
297 309 extra: merge-removal-candidate = yes
298 310 file: file2 (state "u")
299 311 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
300 312 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
301 313 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
302 314 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
303 315 extra: merge-removal-candidate = yes
304 316 file: file3 (state "u")
305 317 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
306 318 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
307 319 other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb)
308 320 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
309 321 *** file1 does not exist
310 322 --- file2 ---
311 323 2
312 324 changed
313 325 --- file3 ---
314 326 3
315 327 <<<<<<< working copy: 13910f48cf7b - test: changed file1, removed file2, chan...
316 328 changed2
317 329 =======
318 330 changed1
319 331 >>>>>>> merge rev: 10f9a0a634e8 - test: removed file1, changed file2, chan...
320 332
321 333 Choose local versions of files
322 334
323 335 $ hg co -C
324 336 2 files updated, 0 files merged, 1 files removed, 0 files unresolved
325 337 updated to "13910f48cf7b: changed file1, removed file2, changed file3"
326 338 1 other heads for branch "default"
327 339
328 340 $ hg merge --tool :local
329 341 0 files updated, 3 files merged, 0 files removed, 0 files unresolved
330 342 (branch merge, don't forget to commit)
331 343 $ status 2>&1 | tee $TESTTMP/local.status
332 344 --- status ---
333 345 file2: * (glob)
334 346 M file3
335 347 C file1
336 348 --- resolve --list ---
337 349 R file1
338 350 R file2
339 351 R file3
340 352 --- debugmergestate ---
341 353 local (working copy): 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
342 354 other (merge rev): 10f9a0a634e82080907e62f075ab119cbc565ea6
343 355 file: file1 (state "r")
344 356 local path: file1 (hash 60b27f004e454aca81b0480209cce5081ec52390, flags "")
345 357 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
346 358 other path: file1 (node 0000000000000000000000000000000000000000)
347 359 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
348 360 extra: merge-removal-candidate = yes
349 361 file: file2 (state "r")
350 362 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
351 363 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
352 364 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
353 365 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
354 366 extra: merge-removal-candidate = yes
355 367 file: file3 (state "r")
356 368 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
357 369 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
358 370 other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb)
359 371 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
360 372 --- file1 ---
361 373 1
362 374 changed
363 375 *** file2 does not exist
364 376 --- file3 ---
365 377 3
366 378 changed2
367 379
368 380 Choose other versions of files
369 381
370 382 $ hg co -C
371 383 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
372 384 updated to "13910f48cf7b: changed file1, removed file2, changed file3"
373 385 1 other heads for branch "default"
374 386
375 387 $ hg merge --tool :other
376 388 0 files updated, 2 files merged, 1 files removed, 0 files unresolved
377 389 (branch merge, don't forget to commit)
378 390 $ status 2>&1 | tee $TESTTMP/other.status
379 391 --- status ---
380 392 M file2
381 393 M file3
382 394 R file1
383 395 --- resolve --list ---
384 396 R file1
385 397 R file2
386 398 R file3
387 399 --- debugmergestate ---
388 400 local (working copy): 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
389 401 other (merge rev): 10f9a0a634e82080907e62f075ab119cbc565ea6
390 402 file: file1 (state "r")
391 403 local path: file1 (hash 60b27f004e454aca81b0480209cce5081ec52390, flags "")
392 404 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
393 405 other path: file1 (node 0000000000000000000000000000000000000000)
394 406 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
395 407 extra: merge-removal-candidate = yes
396 408 file: file2 (state "r")
397 409 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
398 410 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
399 411 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
400 412 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
401 413 extra: merge-removal-candidate = yes
402 414 file: file3 (state "r")
403 415 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
404 416 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
405 417 other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb)
406 418 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
407 419 *** file1 does not exist
408 420 --- file2 ---
409 421 2
410 422 changed
411 423 --- file3 ---
412 424 3
413 425 changed1
414 426
415 427 Fail
416 428
417 429 $ hg co -C
418 430 2 files updated, 0 files merged, 1 files removed, 0 files unresolved
419 431 updated to "13910f48cf7b: changed file1, removed file2, changed file3"
420 432 1 other heads for branch "default"
421 433
422 434 $ hg merge --tool :fail
423 435 0 files updated, 0 files merged, 0 files removed, 3 files unresolved
424 436 use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon
425 437 [1]
426 438 $ status 2>&1 | tee $TESTTMP/fail.status
427 439 --- status ---
428 440 M file2
429 441 M file3
430 442 C file1
431 443 --- resolve --list ---
432 444 U file1
433 445 U file2
434 446 U file3
435 447 --- debugmergestate ---
436 448 local (working copy): 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
437 449 other (merge rev): 10f9a0a634e82080907e62f075ab119cbc565ea6
438 450 file: file1 (state "u")
439 451 local path: file1 (hash 60b27f004e454aca81b0480209cce5081ec52390, flags "")
440 452 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
441 453 other path: file1 (node 0000000000000000000000000000000000000000)
442 454 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
443 455 extra: merge-removal-candidate = yes
444 456 file: file2 (state "u")
445 457 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
446 458 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
447 459 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
448 460 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
449 461 extra: merge-removal-candidate = yes
450 462 file: file3 (state "u")
451 463 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
452 464 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
453 465 other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb)
454 466 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
455 467 --- file1 ---
456 468 1
457 469 changed
458 470 --- file2 ---
459 471 2
460 472 changed
461 473 --- file3 ---
462 474 3
463 475 changed2
464 476
465 477 Force prompts with no input (should be similar to :fail)
466 478
467 479 $ hg co -C
468 480 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
469 481 updated to "13910f48cf7b: changed file1, removed file2, changed file3"
470 482 1 other heads for branch "default"
471 483
472 484 $ hg merge --config ui.interactive=True --tool :prompt
473 485 file 'file1' was deleted in other [merge rev] but was modified in local [working copy].
474 486 You can use (c)hanged version, (d)elete, or leave (u)nresolved.
475 487 What do you want to do?
476 488 file 'file2' was deleted in local [working copy] but was modified in other [merge rev].
477 489 You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved.
478 490 What do you want to do?
479 491 file 'file3' needs to be resolved.
480 492 You can keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved.
481 493 What do you want to do?
482 494 0 files updated, 0 files merged, 0 files removed, 3 files unresolved
483 495 use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon
484 496 [1]
485 497 $ status 2>&1 | tee $TESTTMP/prompt.status
486 498 --- status ---
487 499 M file2
488 500 M file3
489 501 C file1
490 502 --- resolve --list ---
491 503 U file1
492 504 U file2
493 505 U file3
494 506 --- debugmergestate ---
495 507 local (working copy): 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
496 508 other (merge rev): 10f9a0a634e82080907e62f075ab119cbc565ea6
497 509 file: file1 (state "u")
498 510 local path: file1 (hash 60b27f004e454aca81b0480209cce5081ec52390, flags "")
499 511 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
500 512 other path: file1 (node 0000000000000000000000000000000000000000)
501 513 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
502 514 extra: merge-removal-candidate = yes
503 515 file: file2 (state "u")
504 516 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
505 517 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
506 518 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
507 519 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
508 520 extra: merge-removal-candidate = yes
509 521 file: file3 (state "u")
510 522 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
511 523 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
512 524 other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb)
513 525 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
514 526 --- file1 ---
515 527 1
516 528 changed
517 529 --- file2 ---
518 530 2
519 531 changed
520 532 --- file3 ---
521 533 3
522 534 changed2
523 535 $ cmp $TESTTMP/fail.status $TESTTMP/prompt.status || diff -U8 $TESTTMP/fail.status $TESTTMP/prompt.status
524 536
525 537
526 538 Force prompts
527 539
528 540 $ hg co -C
529 541 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
530 542 updated to "13910f48cf7b: changed file1, removed file2, changed file3"
531 543 1 other heads for branch "default"
532 544
533 545 $ hg merge --tool :prompt
534 546 file 'file1' was deleted in other [merge rev] but was modified in local [working copy].
535 547 You can use (c)hanged version, (d)elete, or leave (u)nresolved.
536 548 What do you want to do? u
537 549 file 'file2' was deleted in local [working copy] but was modified in other [merge rev].
538 550 You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved.
539 551 What do you want to do? u
540 552 file 'file3' needs to be resolved.
541 553 You can keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved.
542 554 What do you want to do? u
543 555 0 files updated, 0 files merged, 0 files removed, 3 files unresolved
544 556 use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon
545 557 [1]
546 558 $ status
547 559 --- status ---
548 560 M file2
549 561 M file3
550 562 C file1
551 563 --- resolve --list ---
552 564 U file1
553 565 U file2
554 566 U file3
555 567 --- debugmergestate ---
556 568 local (working copy): 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
557 569 other (merge rev): 10f9a0a634e82080907e62f075ab119cbc565ea6
558 570 file: file1 (state "u")
559 571 local path: file1 (hash 60b27f004e454aca81b0480209cce5081ec52390, flags "")
560 572 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
561 573 other path: file1 (node 0000000000000000000000000000000000000000)
562 574 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
563 575 extra: merge-removal-candidate = yes
564 576 file: file2 (state "u")
565 577 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
566 578 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
567 579 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
568 580 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
569 581 extra: merge-removal-candidate = yes
570 582 file: file3 (state "u")
571 583 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
572 584 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
573 585 other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb)
574 586 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
575 587 --- file1 ---
576 588 1
577 589 changed
578 590 --- file2 ---
579 591 2
580 592 changed
581 593 --- file3 ---
582 594 3
583 595 changed2
584 596
585 597 Choose to merge all files
586 598
587 599 $ hg co -C
588 600 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
589 601 updated to "13910f48cf7b: changed file1, removed file2, changed file3"
590 602 1 other heads for branch "default"
591 603
592 604 $ hg merge --tool :merge3
593 605 file 'file1' was deleted in other [merge rev] but was modified in local [working copy].
594 606 You can use (c)hanged version, (d)elete, or leave (u)nresolved.
595 607 What do you want to do? u
596 608 file 'file2' was deleted in local [working copy] but was modified in other [merge rev].
597 609 You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved.
598 610 What do you want to do? u
599 611 merging file3
600 612 warning: conflicts while merging file3! (edit, then use 'hg resolve --mark')
601 613 0 files updated, 0 files merged, 0 files removed, 3 files unresolved
602 614 use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon
603 615 [1]
604 616 $ status
605 617 --- status ---
606 618 M file2
607 619 M file3
608 620 C file1
609 621 --- resolve --list ---
610 622 U file1
611 623 U file2
612 624 U file3
613 625 --- debugmergestate ---
614 626 local (working copy): 13910f48cf7bdb2a0ba6e24b4900e4fdd5739dd4
615 627 other (merge rev): 10f9a0a634e82080907e62f075ab119cbc565ea6
616 628 file: file1 (state "u")
617 629 local path: file1 (hash 60b27f004e454aca81b0480209cce5081ec52390, flags "")
618 630 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
619 631 other path: file1 (node 0000000000000000000000000000000000000000)
620 632 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
621 633 extra: merge-removal-candidate = yes
622 634 file: file2 (state "u")
623 635 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
624 636 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
625 637 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
626 638 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
627 639 extra: merge-removal-candidate = yes
628 640 file: file3 (state "u")
629 641 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
630 642 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
631 643 other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb)
632 644 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
633 645 --- file1 ---
634 646 1
635 647 changed
636 648 --- file2 ---
637 649 2
638 650 changed
639 651 --- file3 ---
640 652 3
641 653 <<<<<<< working copy: 13910f48cf7b - test: changed file1, removed file2, chan...
642 654 changed2
643 655 ||||||| base
644 656 =======
645 657 changed1
646 658 >>>>>>> merge rev: 10f9a0a634e8 - test: removed file1, changed file2, chan...
647 659
648 660 Exercise transitions between local, other, fail and prompt, and make sure the
649 661 dirstate stays consistent. (Compare with each other and to the above
650 662 invocations.)
651 663
652 664 $ testtransitions() {
653 665 > # this traversal order covers every transition
654 666 > tools="local other prompt local fail other local prompt other fail prompt fail local"
655 667 > lasttool="merge3"
656 668 > for tool in $tools; do
657 669 > echo "=== :$lasttool -> :$tool ==="
658 670 > ref="$TESTTMP/$tool.status"
659 671 > hg resolve --unmark --all
660 672 > hg resolve --tool ":$tool" --all --config ui.interactive=True
661 673 > status > "$TESTTMP/compare.status" 2>&1
662 674 > echo '--- diff of status ---'
663 675 > if cmp "$TESTTMP/$tool.status" "$TESTTMP/compare.status" || diff -U8 "$TESTTMP/$tool.status" "$TESTTMP/compare.status"; then
664 676 > echo '(status identical)'
665 677 > fi
666 678 > lasttool="$tool"
667 679 > echo
668 680 > done
669 681 > }
670 682
671 683 $ testtransitions
672 684 === :merge3 -> :local ===
673 685 (no more unresolved files)
674 686 --- diff of status ---
675 687 (status identical)
676 688
677 689 === :local -> :other ===
678 690 (no more unresolved files)
679 691 --- diff of status ---
680 692 (status identical)
681 693
682 694 === :other -> :prompt ===
683 695 file 'file1' was deleted in other [merge rev] but was modified in local [working copy].
684 696 You can use (c)hanged version, (d)elete, or leave (u)nresolved.
685 697 What do you want to do?
686 698 file 'file2' was deleted in local [working copy] but was modified in other [merge rev].
687 699 You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved.
688 700 What do you want to do?
689 701 file 'file3' needs to be resolved.
690 702 You can keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved.
691 703 What do you want to do?
692 704 --- diff of status ---
693 705 (status identical)
694 706
695 707 === :prompt -> :local ===
696 708 (no more unresolved files)
697 709 --- diff of status ---
698 710 (status identical)
699 711
700 712 === :local -> :fail ===
701 713 --- diff of status ---
702 714 (status identical)
703 715
704 716 === :fail -> :other ===
705 717 (no more unresolved files)
706 718 --- diff of status ---
707 719 (status identical)
708 720
709 721 === :other -> :local ===
710 722 (no more unresolved files)
711 723 --- diff of status ---
712 724 (status identical)
713 725
714 726 === :local -> :prompt ===
715 727 file 'file1' was deleted in other [merge rev] but was modified in local [working copy].
716 728 You can use (c)hanged version, (d)elete, or leave (u)nresolved.
717 729 What do you want to do?
718 730 file 'file2' was deleted in local [working copy] but was modified in other [merge rev].
719 731 You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved.
720 732 What do you want to do?
721 733 file 'file3' needs to be resolved.
722 734 You can keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved.
723 735 What do you want to do?
724 736 --- diff of status ---
725 737 (status identical)
726 738
727 739 === :prompt -> :other ===
728 740 (no more unresolved files)
729 741 --- diff of status ---
730 742 (status identical)
731 743
732 744 === :other -> :fail ===
733 745 --- diff of status ---
734 746 (status identical)
735 747
736 748 === :fail -> :prompt ===
737 749 file 'file1' was deleted in other [merge rev] but was modified in local [working copy].
738 750 You can use (c)hanged version, (d)elete, or leave (u)nresolved.
739 751 What do you want to do?
740 752 file 'file2' was deleted in local [working copy] but was modified in other [merge rev].
741 753 You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved.
742 754 What do you want to do?
743 755 file 'file3' needs to be resolved.
744 756 You can keep (l)ocal [working copy], take (o)ther [merge rev], or leave (u)nresolved.
745 757 What do you want to do?
746 758 --- diff of status ---
747 759 (status identical)
748 760
749 761 === :prompt -> :fail ===
750 762 --- diff of status ---
751 763 (status identical)
752 764
753 765 === :fail -> :local ===
754 766 (no more unresolved files)
755 767 --- diff of status ---
756 768 (status identical)
757 769
758 770
759 771
760 772 Non-interactive linear update
761 773
762 774 $ hg co -C 0
763 775 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
764 776 $ echo changed >> file1
765 777 $ hg rm file2
766 778 $ hg update 1 -y
767 779 file 'file1' was deleted in other [destination] but was modified in local [working copy].
768 780 You can use (c)hanged version, (d)elete, or leave (u)nresolved.
769 781 What do you want to do? u
770 782 file 'file2' was deleted in local [working copy] but was modified in other [destination].
771 783 You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved.
772 784 What do you want to do? u
773 785 1 files updated, 0 files merged, 0 files removed, 2 files unresolved
774 786 use 'hg resolve' to retry unresolved file merges
775 787 [1]
776 788 $ status
777 789 --- status ---
778 790 A file1
779 791 C file2
780 792 C file3
781 793 --- resolve --list ---
782 794 U file1
783 795 U file2
784 796 --- debugmergestate ---
785 797 local (working copy): ab57bf49aa276a22d35a473592d4c34b5abc3eff
786 798 other (destination): 10f9a0a634e82080907e62f075ab119cbc565ea6
787 799 file: file1 (state "u")
788 800 local path: file1 (hash 60b27f004e454aca81b0480209cce5081ec52390, flags "")
789 801 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
790 802 other path: file1 (node 0000000000000000000000000000000000000000)
791 803 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
792 804 file: file2 (state "u")
793 805 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
794 806 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
795 807 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
796 808 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
797 809 --- file1 ---
798 810 1
799 811 changed
800 812 --- file2 ---
801 813 2
802 814 changed
803 815 --- file3 ---
804 816 3
805 817 changed1
806 818
807 819 Choose local versions of files
808 820
809 821 $ hg co -C 0
810 822 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
811 823 $ echo changed >> file1
812 824 $ hg rm file2
813 825 $ hg update 1 --tool :local
814 826 1 files updated, 2 files merged, 0 files removed, 0 files unresolved
815 827 $ status 2>&1 | tee $TESTTMP/local.status
816 828 --- status ---
817 829 file2: * (glob)
818 830 A file1
819 831 C file3
820 832 --- resolve --list ---
821 833 R file1
822 834 R file2
823 835 --- debugmergestate ---
824 836 local (working copy): ab57bf49aa276a22d35a473592d4c34b5abc3eff
825 837 other (destination): 10f9a0a634e82080907e62f075ab119cbc565ea6
826 838 file: file1 (state "r")
827 839 local path: file1 (hash 60b27f004e454aca81b0480209cce5081ec52390, flags "")
828 840 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
829 841 other path: file1 (node 0000000000000000000000000000000000000000)
830 842 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
831 843 file: file2 (state "r")
832 844 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
833 845 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
834 846 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
835 847 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
836 848 --- file1 ---
837 849 1
838 850 changed
839 851 *** file2 does not exist
840 852 --- file3 ---
841 853 3
842 854 changed1
843 855
844 856 Choose other versions of files
845 857
846 858 $ hg co -C 0
847 859 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
848 860 $ echo changed >> file1
849 861 $ hg rm file2
850 862 $ hg update 1 --tool :other
851 863 1 files updated, 1 files merged, 1 files removed, 0 files unresolved
852 864 $ status 2>&1 | tee $TESTTMP/other.status
853 865 --- status ---
854 866 file1: * (glob)
855 867 C file2
856 868 C file3
857 869 --- resolve --list ---
858 870 R file1
859 871 R file2
860 872 --- debugmergestate ---
861 873 local (working copy): ab57bf49aa276a22d35a473592d4c34b5abc3eff
862 874 other (destination): 10f9a0a634e82080907e62f075ab119cbc565ea6
863 875 file: file1 (state "r")
864 876 local path: file1 (hash 60b27f004e454aca81b0480209cce5081ec52390, flags "")
865 877 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
866 878 other path: file1 (node 0000000000000000000000000000000000000000)
867 879 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
868 880 file: file2 (state "r")
869 881 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
870 882 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
871 883 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
872 884 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
873 885 *** file1 does not exist
874 886 --- file2 ---
875 887 2
876 888 changed
877 889 --- file3 ---
878 890 3
879 891 changed1
880 892
881 893 Fail
882 894
883 895 $ hg co -C 0
884 896 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
885 897 $ echo changed >> file1
886 898 $ hg rm file2
887 899 $ hg update 1 --tool :fail
888 900 1 files updated, 0 files merged, 0 files removed, 2 files unresolved
889 901 use 'hg resolve' to retry unresolved file merges
890 902 [1]
891 903 $ status 2>&1 | tee $TESTTMP/fail.status
892 904 --- status ---
893 905 A file1
894 906 C file2
895 907 C file3
896 908 --- resolve --list ---
897 909 U file1
898 910 U file2
899 911 --- debugmergestate ---
900 912 local (working copy): ab57bf49aa276a22d35a473592d4c34b5abc3eff
901 913 other (destination): 10f9a0a634e82080907e62f075ab119cbc565ea6
902 914 file: file1 (state "u")
903 915 local path: file1 (hash 60b27f004e454aca81b0480209cce5081ec52390, flags "")
904 916 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
905 917 other path: file1 (node 0000000000000000000000000000000000000000)
906 918 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
907 919 file: file2 (state "u")
908 920 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
909 921 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
910 922 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
911 923 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
912 924 --- file1 ---
913 925 1
914 926 changed
915 927 --- file2 ---
916 928 2
917 929 changed
918 930 --- file3 ---
919 931 3
920 932 changed1
921 933
922 934 Force prompts with no input
923 935
924 936 $ hg co -C 0
925 937 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
926 938 $ echo changed >> file1
927 939 $ hg rm file2
928 940 $ hg update 1 --config ui.interactive=True --tool :prompt
929 941 file 'file1' was deleted in other [destination] but was modified in local [working copy].
930 942 You can use (c)hanged version, (d)elete, or leave (u)nresolved.
931 943 What do you want to do?
932 944 file 'file2' was deleted in local [working copy] but was modified in other [destination].
933 945 You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved.
934 946 What do you want to do?
935 947 1 files updated, 0 files merged, 0 files removed, 2 files unresolved
936 948 use 'hg resolve' to retry unresolved file merges
937 949 [1]
938 950 $ status 2>&1 | tee $TESTTMP/prompt.status
939 951 --- status ---
940 952 A file1
941 953 C file2
942 954 C file3
943 955 --- resolve --list ---
944 956 U file1
945 957 U file2
946 958 --- debugmergestate ---
947 959 local (working copy): ab57bf49aa276a22d35a473592d4c34b5abc3eff
948 960 other (destination): 10f9a0a634e82080907e62f075ab119cbc565ea6
949 961 file: file1 (state "u")
950 962 local path: file1 (hash 60b27f004e454aca81b0480209cce5081ec52390, flags "")
951 963 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
952 964 other path: file1 (node 0000000000000000000000000000000000000000)
953 965 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
954 966 file: file2 (state "u")
955 967 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
956 968 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
957 969 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
958 970 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
959 971 --- file1 ---
960 972 1
961 973 changed
962 974 --- file2 ---
963 975 2
964 976 changed
965 977 --- file3 ---
966 978 3
967 979 changed1
968 980 $ cmp $TESTTMP/fail.status $TESTTMP/prompt.status || diff -U8 $TESTTMP/fail.status $TESTTMP/prompt.status
969 981
970 982 Choose to merge all files
971 983
972 984 $ hg co -C 0
973 985 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
974 986 $ echo changed >> file1
975 987 $ hg rm file2
976 988 $ hg update 1 --tool :merge3
977 989 file 'file1' was deleted in other [destination] but was modified in local [working copy].
978 990 You can use (c)hanged version, (d)elete, or leave (u)nresolved.
979 991 What do you want to do? u
980 992 file 'file2' was deleted in local [working copy] but was modified in other [destination].
981 993 You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved.
982 994 What do you want to do? u
983 995 1 files updated, 0 files merged, 0 files removed, 2 files unresolved
984 996 use 'hg resolve' to retry unresolved file merges
985 997 [1]
986 998 $ status
987 999 --- status ---
988 1000 A file1
989 1001 C file2
990 1002 C file3
991 1003 --- resolve --list ---
992 1004 U file1
993 1005 U file2
994 1006 --- debugmergestate ---
995 1007 local (working copy): ab57bf49aa276a22d35a473592d4c34b5abc3eff
996 1008 other (destination): 10f9a0a634e82080907e62f075ab119cbc565ea6
997 1009 file: file1 (state "u")
998 1010 local path: file1 (hash 60b27f004e454aca81b0480209cce5081ec52390, flags "")
999 1011 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
1000 1012 other path: file1 (node 0000000000000000000000000000000000000000)
1001 1013 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
1002 1014 file: file2 (state "u")
1003 1015 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
1004 1016 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
1005 1017 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
1006 1018 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
1007 1019 --- file1 ---
1008 1020 1
1009 1021 changed
1010 1022 --- file2 ---
1011 1023 2
1012 1024 changed
1013 1025 --- file3 ---
1014 1026 3
1015 1027 changed1
1016 1028
1017 1029 Test transitions between different merge tools
1018 1030
1019 1031 $ testtransitions
1020 1032 === :merge3 -> :local ===
1021 1033 (no more unresolved files)
1022 1034 --- diff of status ---
1023 1035 (status identical)
1024 1036
1025 1037 === :local -> :other ===
1026 1038 (no more unresolved files)
1027 1039 --- diff of status ---
1028 1040 (status identical)
1029 1041
1030 1042 === :other -> :prompt ===
1031 1043 file 'file1' was deleted in other [destination] but was modified in local [working copy].
1032 1044 You can use (c)hanged version, (d)elete, or leave (u)nresolved.
1033 1045 What do you want to do?
1034 1046 file 'file2' was deleted in local [working copy] but was modified in other [destination].
1035 1047 You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved.
1036 1048 What do you want to do?
1037 1049 --- diff of status ---
1038 1050 (status identical)
1039 1051
1040 1052 === :prompt -> :local ===
1041 1053 (no more unresolved files)
1042 1054 --- diff of status ---
1043 1055 (status identical)
1044 1056
1045 1057 === :local -> :fail ===
1046 1058 --- diff of status ---
1047 1059 (status identical)
1048 1060
1049 1061 === :fail -> :other ===
1050 1062 (no more unresolved files)
1051 1063 --- diff of status ---
1052 1064 (status identical)
1053 1065
1054 1066 === :other -> :local ===
1055 1067 (no more unresolved files)
1056 1068 --- diff of status ---
1057 1069 (status identical)
1058 1070
1059 1071 === :local -> :prompt ===
1060 1072 file 'file1' was deleted in other [destination] but was modified in local [working copy].
1061 1073 You can use (c)hanged version, (d)elete, or leave (u)nresolved.
1062 1074 What do you want to do?
1063 1075 file 'file2' was deleted in local [working copy] but was modified in other [destination].
1064 1076 You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved.
1065 1077 What do you want to do?
1066 1078 --- diff of status ---
1067 1079 (status identical)
1068 1080
1069 1081 === :prompt -> :other ===
1070 1082 (no more unresolved files)
1071 1083 --- diff of status ---
1072 1084 (status identical)
1073 1085
1074 1086 === :other -> :fail ===
1075 1087 --- diff of status ---
1076 1088 (status identical)
1077 1089
1078 1090 === :fail -> :prompt ===
1079 1091 file 'file1' was deleted in other [destination] but was modified in local [working copy].
1080 1092 You can use (c)hanged version, (d)elete, or leave (u)nresolved.
1081 1093 What do you want to do?
1082 1094 file 'file2' was deleted in local [working copy] but was modified in other [destination].
1083 1095 You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved.
1084 1096 What do you want to do?
1085 1097 --- diff of status ---
1086 1098 (status identical)
1087 1099
1088 1100 === :prompt -> :fail ===
1089 1101 --- diff of status ---
1090 1102 (status identical)
1091 1103
1092 1104 === :fail -> :local ===
1093 1105 (no more unresolved files)
1094 1106 --- diff of status ---
1095 1107 (status identical)
1096 1108
General Comments 0
You need to be logged in to leave comments. Login now