Show More
@@ -361,6 +361,8 b' def _filecommit(' | |||
|
361 | 361 | elif fparent2 != nullid: |
|
362 | 362 | if ms.active() and ms.extras(fname).get(b'filenode-source') == b'other': |
|
363 | 363 | fparent1, fparent2 = fparent2, nullid |
|
364 | elif ms.active() and ms.extras(fname).get(b'merged') != b'yes': | |
|
365 | fparent1, fparent2 = fparent1, nullid | |
|
364 | 366 | # is one parent an ancestor of the other? |
|
365 | 367 | else: |
|
366 | 368 | fparentancestors = flog.commonancestorsheads(fparent1, fparent2) |
@@ -1698,6 +1698,7 b' def applyupdates(' | |||
|
1698 | 1698 | tocomplete = [] |
|
1699 | 1699 | for f, args, msg in mergeactions: |
|
1700 | 1700 | repo.ui.debug(b" %s: %s -> m (premerge)\n" % (f, msg)) |
|
1701 | ms.addcommitinfo(f, {b'merged': b'yes'}) | |
|
1701 | 1702 | progress.increment(item=f) |
|
1702 | 1703 | if f == b'.hgsubstate': # subrepo states need updating |
|
1703 | 1704 | subrepoutil.submerge( |
@@ -1713,6 +1714,7 b' def applyupdates(' | |||
|
1713 | 1714 | # merge |
|
1714 | 1715 | for f, args, msg in tocomplete: |
|
1715 | 1716 | repo.ui.debug(b" %s: %s -> m (merge)\n" % (f, msg)) |
|
1717 | ms.addcommitinfo(f, {b'merged': b'yes'}) | |
|
1716 | 1718 | progress.increment(item=f, total=numupdates) |
|
1717 | 1719 | ms.resolve(f, wctx) |
|
1718 | 1720 |
@@ -718,6 +718,7 b' Test usage of `hg resolve` in case of co' | |||
|
718 | 718 | ancestor path: foo (node f89532f44c247a0e993d63e3a734dd781ab04708) |
|
719 | 719 | other path: foo (node f50039b486d6fa1a90ae51778388cad161f425ee) |
|
720 | 720 | extra: ancestorlinknode = 91360952243723bd5b1138d5f26bd8c8564cb553 |
|
721 | extra: merged = yes | |
|
721 | 722 | $ mv .hg/merge/state2 .hg/merge/state2-moved |
|
722 | 723 | $ hg debugmergestate -v |
|
723 | 724 | no version 2 merge state |
@@ -946,8 +946,7 b' Merge:' | |||
|
946 | 946 | $ hg ci -m "mFB-change-m-0 $case_desc - the other way" |
|
947 | 947 | created new head |
|
948 | 948 | $ hg manifest --rev . --debug | grep " d" |
|
949 |
1c334238bd42ec85c6a0d83fd1b2a898a6a3215d 644 d (no-changeset |
|
|
950 | 646ed7992dec41eb29635ab28268e7867d0e59a0 644 d (no-changeset known-bad-output !) | |
|
949 | 1c334238bd42ec85c6a0d83fd1b2a898a6a3215d 644 d (no-changeset !) | |
|
951 | 950 | cea2d99c0fde64672ef61953786fdff34f16e230 644 d (changeset !) |
|
952 | 951 | #if no-changeset |
|
953 | 952 | $ hg debugindex d | ../no-linkrev |
@@ -961,7 +960,6 b' Merge:' | |||
|
961 | 960 | 6 * 89c873a01d97 7b79e2fe0c89 17ec97e60577 |
|
962 | 961 | 7 * d55cb4e9ef57 000000000000 000000000000 |
|
963 | 962 | 8 * 1c334238bd42 7b79e2fe0c89 000000000000 |
|
964 | 9 * 646ed7992dec 7b79e2fe0c89 d8252ab2e760 (known-bad-output !) | |
|
965 | 963 | #else |
|
966 | 964 | $ hg debugindex d | ../no-linkrev |
|
967 | 965 | rev linkrev nodeid p1 p2 |
@@ -1917,10 +1915,12 b' We upgrade a repository that is not usin' | |||
|
1917 | 1915 | ##### revision "mFB-change-m-0 merge with extra change - B side" ##### |
|
1918 | 1916 | 1 sidedata entries |
|
1919 | 1917 | entry-0014 size 14 |
|
1920 |
'\x00\x00\x00\x01\x |
|
|
1921 | merged : d, ; (known-bad-output !) | |
|
1922 |
'\x00\x00\x00\x01\x |
|
|
1923 | touched : d, ; (missing-correct-output !) | |
|
1918 | '\x00\x00\x00\x01\x14\x00\x00\x00\x01\x00\x00\x00\x00d' (no-upgraded no-upgraded-parallel !) | |
|
1919 | touched : d, ; (no-upgraded no-upgraded-parallel !) | |
|
1920 | '\x00\x00\x00\x01\x08\x00\x00\x00\x01\x00\x00\x00\x00d' (upgraded-parallel known-bad-output !) | |
|
1921 | merged : d, ; (upgraded-parallel known-bad-output !) | |
|
1922 | '\x00\x00\x00\x01\x08\x00\x00\x00\x01\x00\x00\x00\x00d' (upgraded known-bad-output !) | |
|
1923 | merged : d, ; (upgraded known-bad-output !) | |
|
1924 | 1924 | ##### revision "j-1" ##### |
|
1925 | 1925 | 1 sidedata entries |
|
1926 | 1926 | entry-0014 size 24 |
@@ -3357,13 +3357,7 b' Merge:' | |||
|
3357 | 3357 | $ hg status --copies --rev 'desc("i-0")' --rev 'desc("mFB-change-m-0")' |
|
3358 | 3358 | M b |
|
3359 | 3359 | A d |
|
3360 | h (filelog missing-correct-output !) | |
|
3361 | a (filelog known-bad-output !) | |
|
3362 | h (sidedata !) | |
|
3363 | h (upgraded !) | |
|
3364 | h (upgraded-parallel !) | |
|
3365 | h (changeset !) | |
|
3366 | h (compatibility !) | |
|
3360 | h | |
|
3367 | 3361 | A t |
|
3368 | 3362 | p |
|
3369 | 3363 | R a |
@@ -3422,10 +3416,6 b' BROKEN: `hg log --follow <file>` relies ' | |||
|
3422 | 3416 | | : |
|
3423 | 3417 | o : f-1: rename h -> i |
|
3424 | 3418 | :/ |
|
3425 | o i-2: c -move-> d, s -move-> t (known-bad-output !) | |
|
3426 | | (known-bad-output !) | |
|
3427 | o i-1: a -move-> c, p -move-> s (known-bad-output !) | |
|
3428 | | (known-bad-output !) | |
|
3429 | 3419 |
|
|
3430 | 3420 | |
|
3431 | 3421 | #else |
@@ -84,6 +84,7 b' insert unsupported advisory merge record' | |||
|
84 | 84 | ancestor path: e (node 0000000000000000000000000000000000000000) |
|
85 | 85 | other path: e (node 6b67ccefd5ce6de77e7ead4f5292843a0255329f) |
|
86 | 86 | extra: ancestorlinknode = 0000000000000000000000000000000000000000 |
|
87 | extra: merged = yes | |
|
87 | 88 | $ hg resolve -l |
|
88 | 89 | U e |
|
89 | 90 |
@@ -96,17 +96,20 b' Non-interactive merge:' | |||
|
96 | 96 | other path: file1 (node 0000000000000000000000000000000000000000) |
|
97 | 97 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
98 | 98 | extra: merge-removal-candidate = yes |
|
99 | extra: merged = yes | |
|
99 | 100 | file: file2 (state "u") |
|
100 | 101 | local path: file2 (hash 0000000000000000000000000000000000000000, flags "") |
|
101 | 102 | ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e) |
|
102 | 103 | other path: file2 (node e7c1328648519852e723de86c0c0525acd779257) |
|
103 | 104 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
104 | 105 | extra: merge-removal-candidate = yes |
|
106 | extra: merged = yes | |
|
105 | 107 | file: file3 (state "u") |
|
106 | 108 | local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "") |
|
107 | 109 | ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4) |
|
108 | 110 | other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb) |
|
109 | 111 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
112 | extra: merged = yes | |
|
110 | 113 | --- file1 --- |
|
111 | 114 | 1 |
|
112 | 115 | changed |
@@ -163,17 +166,20 b' Interactive merge:' | |||
|
163 | 166 | other path: file1 (node 0000000000000000000000000000000000000000) |
|
164 | 167 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
165 | 168 | extra: merge-removal-candidate = yes |
|
169 | extra: merged = yes | |
|
166 | 170 | file: file2 (state "r") |
|
167 | 171 | local path: file2 (hash 0000000000000000000000000000000000000000, flags "") |
|
168 | 172 | ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e) |
|
169 | 173 | other path: file2 (node e7c1328648519852e723de86c0c0525acd779257) |
|
170 | 174 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
171 | 175 | extra: merge-removal-candidate = yes |
|
176 | extra: merged = yes | |
|
172 | 177 | file: file3 (state "u") |
|
173 | 178 | local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "") |
|
174 | 179 | ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4) |
|
175 | 180 | other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb) |
|
176 | 181 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
182 | extra: merged = yes | |
|
177 | 183 | --- file1 --- |
|
178 | 184 | 1 |
|
179 | 185 | changed |
@@ -243,17 +249,20 b' Interactive merge with bad input:' | |||
|
243 | 249 | other path: file1 (node 0000000000000000000000000000000000000000) |
|
244 | 250 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
245 | 251 | extra: merge-removal-candidate = yes |
|
252 | extra: merged = yes | |
|
246 | 253 | file: file2 (state "r") |
|
247 | 254 | local path: file2 (hash 0000000000000000000000000000000000000000, flags "") |
|
248 | 255 | ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e) |
|
249 | 256 | other path: file2 (node e7c1328648519852e723de86c0c0525acd779257) |
|
250 | 257 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
251 | 258 | extra: merge-removal-candidate = yes |
|
259 | extra: merged = yes | |
|
252 | 260 | file: file3 (state "u") |
|
253 | 261 | local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "") |
|
254 | 262 | ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4) |
|
255 | 263 | other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb) |
|
256 | 264 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
265 | extra: merged = yes | |
|
257 | 266 | *** file1 does not exist |
|
258 | 267 | --- file2 --- |
|
259 | 268 | 2 |
@@ -307,17 +316,20 b' Interactive merge with not enough input:' | |||
|
307 | 316 | other path: file1 (node 0000000000000000000000000000000000000000) |
|
308 | 317 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
309 | 318 | extra: merge-removal-candidate = yes |
|
319 | extra: merged = yes | |
|
310 | 320 | file: file2 (state "u") |
|
311 | 321 | local path: file2 (hash 0000000000000000000000000000000000000000, flags "") |
|
312 | 322 | ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e) |
|
313 | 323 | other path: file2 (node e7c1328648519852e723de86c0c0525acd779257) |
|
314 | 324 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
315 | 325 | extra: merge-removal-candidate = yes |
|
326 | extra: merged = yes | |
|
316 | 327 | file: file3 (state "u") |
|
317 | 328 | local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "") |
|
318 | 329 | ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4) |
|
319 | 330 | other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb) |
|
320 | 331 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
332 | extra: merged = yes | |
|
321 | 333 | *** file1 does not exist |
|
322 | 334 | --- file2 --- |
|
323 | 335 | 2 |
@@ -358,17 +370,20 b' Choose local versions of files' | |||
|
358 | 370 | other path: file1 (node 0000000000000000000000000000000000000000) |
|
359 | 371 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
360 | 372 | extra: merge-removal-candidate = yes |
|
373 | extra: merged = yes | |
|
361 | 374 | file: file2 (state "r") |
|
362 | 375 | local path: file2 (hash 0000000000000000000000000000000000000000, flags "") |
|
363 | 376 | ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e) |
|
364 | 377 | other path: file2 (node e7c1328648519852e723de86c0c0525acd779257) |
|
365 | 378 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
366 | 379 | extra: merge-removal-candidate = yes |
|
380 | extra: merged = yes | |
|
367 | 381 | file: file3 (state "r") |
|
368 | 382 | local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "") |
|
369 | 383 | ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4) |
|
370 | 384 | other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb) |
|
371 | 385 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
386 | extra: merged = yes | |
|
372 | 387 | --- file1 --- |
|
373 | 388 | 1 |
|
374 | 389 | changed |
@@ -405,17 +420,20 b' Choose other versions of files' | |||
|
405 | 420 | other path: file1 (node 0000000000000000000000000000000000000000) |
|
406 | 421 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
407 | 422 | extra: merge-removal-candidate = yes |
|
423 | extra: merged = yes | |
|
408 | 424 | file: file2 (state "r") |
|
409 | 425 | local path: file2 (hash 0000000000000000000000000000000000000000, flags "") |
|
410 | 426 | ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e) |
|
411 | 427 | other path: file2 (node e7c1328648519852e723de86c0c0525acd779257) |
|
412 | 428 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
413 | 429 | extra: merge-removal-candidate = yes |
|
430 | extra: merged = yes | |
|
414 | 431 | file: file3 (state "r") |
|
415 | 432 | local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "") |
|
416 | 433 | ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4) |
|
417 | 434 | other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb) |
|
418 | 435 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
436 | extra: merged = yes | |
|
419 | 437 | *** file1 does not exist |
|
420 | 438 | --- file2 --- |
|
421 | 439 | 2 |
@@ -453,17 +471,20 b' Fail' | |||
|
453 | 471 | other path: file1 (node 0000000000000000000000000000000000000000) |
|
454 | 472 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
455 | 473 | extra: merge-removal-candidate = yes |
|
474 | extra: merged = yes | |
|
456 | 475 | file: file2 (state "u") |
|
457 | 476 | local path: file2 (hash 0000000000000000000000000000000000000000, flags "") |
|
458 | 477 | ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e) |
|
459 | 478 | other path: file2 (node e7c1328648519852e723de86c0c0525acd779257) |
|
460 | 479 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
461 | 480 | extra: merge-removal-candidate = yes |
|
481 | extra: merged = yes | |
|
462 | 482 | file: file3 (state "u") |
|
463 | 483 | local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "") |
|
464 | 484 | ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4) |
|
465 | 485 | other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb) |
|
466 | 486 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
487 | extra: merged = yes | |
|
467 | 488 | --- file1 --- |
|
468 | 489 | 1 |
|
469 | 490 | changed |
@@ -512,17 +533,20 b' Force prompts with no input (should be s' | |||
|
512 | 533 | other path: file1 (node 0000000000000000000000000000000000000000) |
|
513 | 534 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
514 | 535 | extra: merge-removal-candidate = yes |
|
536 | extra: merged = yes | |
|
515 | 537 | file: file2 (state "u") |
|
516 | 538 | local path: file2 (hash 0000000000000000000000000000000000000000, flags "") |
|
517 | 539 | ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e) |
|
518 | 540 | other path: file2 (node e7c1328648519852e723de86c0c0525acd779257) |
|
519 | 541 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
520 | 542 | extra: merge-removal-candidate = yes |
|
543 | extra: merged = yes | |
|
521 | 544 | file: file3 (state "u") |
|
522 | 545 | local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "") |
|
523 | 546 | ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4) |
|
524 | 547 | other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb) |
|
525 | 548 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
549 | extra: merged = yes | |
|
526 | 550 | --- file1 --- |
|
527 | 551 | 1 |
|
528 | 552 | changed |
@@ -573,17 +597,20 b' Force prompts' | |||
|
573 | 597 | other path: file1 (node 0000000000000000000000000000000000000000) |
|
574 | 598 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
575 | 599 | extra: merge-removal-candidate = yes |
|
600 | extra: merged = yes | |
|
576 | 601 | file: file2 (state "u") |
|
577 | 602 | local path: file2 (hash 0000000000000000000000000000000000000000, flags "") |
|
578 | 603 | ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e) |
|
579 | 604 | other path: file2 (node e7c1328648519852e723de86c0c0525acd779257) |
|
580 | 605 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
581 | 606 | extra: merge-removal-candidate = yes |
|
607 | extra: merged = yes | |
|
582 | 608 | file: file3 (state "u") |
|
583 | 609 | local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "") |
|
584 | 610 | ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4) |
|
585 | 611 | other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb) |
|
586 | 612 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
613 | extra: merged = yes | |
|
587 | 614 | --- file1 --- |
|
588 | 615 | 1 |
|
589 | 616 | changed |
@@ -631,17 +658,20 b' Choose to merge all files' | |||
|
631 | 658 | other path: file1 (node 0000000000000000000000000000000000000000) |
|
632 | 659 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
633 | 660 | extra: merge-removal-candidate = yes |
|
661 | extra: merged = yes | |
|
634 | 662 | file: file2 (state "u") |
|
635 | 663 | local path: file2 (hash 0000000000000000000000000000000000000000, flags "") |
|
636 | 664 | ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e) |
|
637 | 665 | other path: file2 (node e7c1328648519852e723de86c0c0525acd779257) |
|
638 | 666 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
639 | 667 | extra: merge-removal-candidate = yes |
|
668 | extra: merged = yes | |
|
640 | 669 | file: file3 (state "u") |
|
641 | 670 | local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "") |
|
642 | 671 | ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4) |
|
643 | 672 | other path: file3 (node a2644c43e210356772c7772a8674544a62e06beb) |
|
644 | 673 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
674 | extra: merged = yes | |
|
645 | 675 | --- file1 --- |
|
646 | 676 | 1 |
|
647 | 677 | changed |
@@ -801,11 +831,13 b' Non-interactive linear update' | |||
|
801 | 831 | ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be) |
|
802 | 832 | other path: file1 (node 0000000000000000000000000000000000000000) |
|
803 | 833 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
834 | extra: merged = yes | |
|
804 | 835 | file: file2 (state "u") |
|
805 | 836 | local path: file2 (hash 0000000000000000000000000000000000000000, flags "") |
|
806 | 837 | ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e) |
|
807 | 838 | other path: file2 (node e7c1328648519852e723de86c0c0525acd779257) |
|
808 | 839 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
840 | extra: merged = yes | |
|
809 | 841 | --- file1 --- |
|
810 | 842 | 1 |
|
811 | 843 | changed |
@@ -840,11 +872,13 b' Choose local versions of files' | |||
|
840 | 872 | ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be) |
|
841 | 873 | other path: file1 (node 0000000000000000000000000000000000000000) |
|
842 | 874 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
875 | extra: merged = yes | |
|
843 | 876 | file: file2 (state "r") |
|
844 | 877 | local path: file2 (hash 0000000000000000000000000000000000000000, flags "") |
|
845 | 878 | ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e) |
|
846 | 879 | other path: file2 (node e7c1328648519852e723de86c0c0525acd779257) |
|
847 | 880 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
881 | extra: merged = yes | |
|
848 | 882 | --- file1 --- |
|
849 | 883 | 1 |
|
850 | 884 | changed |
@@ -877,11 +911,13 b' Choose other versions of files' | |||
|
877 | 911 | ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be) |
|
878 | 912 | other path: file1 (node 0000000000000000000000000000000000000000) |
|
879 | 913 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
914 | extra: merged = yes | |
|
880 | 915 | file: file2 (state "r") |
|
881 | 916 | local path: file2 (hash 0000000000000000000000000000000000000000, flags "") |
|
882 | 917 | ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e) |
|
883 | 918 | other path: file2 (node e7c1328648519852e723de86c0c0525acd779257) |
|
884 | 919 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
920 | extra: merged = yes | |
|
885 | 921 | *** file1 does not exist |
|
886 | 922 | --- file2 --- |
|
887 | 923 | 2 |
@@ -916,11 +952,13 b' Fail' | |||
|
916 | 952 | ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be) |
|
917 | 953 | other path: file1 (node 0000000000000000000000000000000000000000) |
|
918 | 954 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
955 | extra: merged = yes | |
|
919 | 956 | file: file2 (state "u") |
|
920 | 957 | local path: file2 (hash 0000000000000000000000000000000000000000, flags "") |
|
921 | 958 | ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e) |
|
922 | 959 | other path: file2 (node e7c1328648519852e723de86c0c0525acd779257) |
|
923 | 960 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
961 | extra: merged = yes | |
|
924 | 962 | --- file1 --- |
|
925 | 963 | 1 |
|
926 | 964 | changed |
@@ -963,11 +1001,13 b' Force prompts with no input' | |||
|
963 | 1001 | ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be) |
|
964 | 1002 | other path: file1 (node 0000000000000000000000000000000000000000) |
|
965 | 1003 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
1004 | extra: merged = yes | |
|
966 | 1005 | file: file2 (state "u") |
|
967 | 1006 | local path: file2 (hash 0000000000000000000000000000000000000000, flags "") |
|
968 | 1007 | ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e) |
|
969 | 1008 | other path: file2 (node e7c1328648519852e723de86c0c0525acd779257) |
|
970 | 1009 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
1010 | extra: merged = yes | |
|
971 | 1011 | --- file1 --- |
|
972 | 1012 | 1 |
|
973 | 1013 | changed |
@@ -1011,11 +1051,13 b' Choose to merge all files' | |||
|
1011 | 1051 | ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be) |
|
1012 | 1052 | other path: file1 (node 0000000000000000000000000000000000000000) |
|
1013 | 1053 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
1054 | extra: merged = yes | |
|
1014 | 1055 | file: file2 (state "u") |
|
1015 | 1056 | local path: file2 (hash 0000000000000000000000000000000000000000, flags "") |
|
1016 | 1057 | ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e) |
|
1017 | 1058 | other path: file2 (node e7c1328648519852e723de86c0c0525acd779257) |
|
1018 | 1059 | extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff |
|
1060 | extra: merged = yes | |
|
1019 | 1061 | --- file1 --- |
|
1020 | 1062 | 1 |
|
1021 | 1063 | changed |
@@ -540,6 +540,7 b' Do all the merge combination (from the deleted or the update side \xc3\x97 keeping and deleting the file' | |||
|
540 | 540 | other path: the-file (node 59e363a07dc876278f0e41756236f30213b6b460) |
|
541 | 541 | extra: ancestorlinknode = 955800955977bd6c103836ee3e437276e940a589 |
|
542 | 542 | extra: merge-removal-candidate = yes |
|
543 | extra: merged = yes | |
|
543 | 544 | extra: other-file (filenode-source = other) |
|
544 | 545 | $ hg ci -m "merge-deleting-the-file-from-deleted" |
|
545 | 546 | $ hg manifest |
@@ -563,6 +564,7 b' Do all the merge combination (from the deleted or the update side \xc3\x97 keeping and deleting the file' | |||
|
563 | 564 | other path: the-file (node 0000000000000000000000000000000000000000) |
|
564 | 565 | extra: ancestorlinknode = 955800955977bd6c103836ee3e437276e940a589 |
|
565 | 566 | extra: merge-removal-candidate = yes |
|
567 | extra: merged = yes | |
|
566 | 568 | $ hg ci -m "merge-deleting-the-file-from-updated" |
|
567 | 569 | created new head |
|
568 | 570 | $ hg manifest |
@@ -586,6 +588,7 b' Do all the merge combination (from the deleted or the update side \xc3\x97 keeping and deleting the file' | |||
|
586 | 588 | other path: the-file (node 59e363a07dc876278f0e41756236f30213b6b460) |
|
587 | 589 | extra: ancestorlinknode = 955800955977bd6c103836ee3e437276e940a589 |
|
588 | 590 | extra: merge-removal-candidate = yes |
|
591 | extra: merged = yes | |
|
589 | 592 | extra: other-file (filenode-source = other) |
|
590 | 593 | $ hg ci -m "merge-keeping-the-file-from-deleted" |
|
591 | 594 | created new head |
@@ -614,6 +617,7 b' Do all the merge combination (from the deleted or the update side \xc3\x97 keeping and deleting the file' | |||
|
614 | 617 | other path: the-file (node 0000000000000000000000000000000000000000) |
|
615 | 618 | extra: ancestorlinknode = 955800955977bd6c103836ee3e437276e940a589 |
|
616 | 619 | extra: merge-removal-candidate = yes |
|
620 | extra: merged = yes | |
|
617 | 621 | $ hg ci -m "merge-keeping-the-file-from-updated" |
|
618 | 622 | created new head |
|
619 | 623 | $ hg manifest |
@@ -695,6 +699,7 b' the conflict is properly detected.' | |||
|
695 | 699 | other path: the-file (node 885af55420b35d7bf3bbd6f546615295bfe6544a) |
|
696 | 700 | extra: ancestorlinknode = 9b610631ab29024c5f44af7d2c19658ef8f8f071 |
|
697 | 701 | extra: merge-removal-candidate = yes |
|
702 | extra: merged = yes | |
|
698 | 703 | #else |
|
699 | 704 | $ hg debugmergestate |
|
700 | 705 | local (working copy): adfd88e5d7d3d3e22bdd26512991ee64d59c1d8f |
@@ -763,6 +768,7 b' BROKEN: this should result in conflict' | |||
|
763 | 768 | other path: the-file (node 885af55420b35d7bf3bbd6f546615295bfe6544a) |
|
764 | 769 | extra: ancestorlinknode = 9b610631ab29024c5f44af7d2c19658ef8f8f071 |
|
765 | 770 | extra: merge-removal-candidate = yes |
|
771 | extra: merged = yes | |
|
766 | 772 | #else |
|
767 | 773 | $ hg debugmergestate |
|
768 | 774 | local (working copy): a4e0e44229dc130be2915b92c957c093f8c7ee3e |
@@ -886,6 +892,7 b' BROKEN: this should result in conflict' | |||
|
886 | 892 | other path: the-file (node 0000000000000000000000000000000000000000) |
|
887 | 893 | extra: ancestorlinknode = 9b610631ab29024c5f44af7d2c19658ef8f8f071 |
|
888 | 894 | extra: merge-removal-candidate = yes |
|
895 | extra: merged = yes | |
|
889 | 896 | #else |
|
890 | 897 | $ hg debugmergestate |
|
891 | 898 | local (working copy): e9b7081317232edce73f7ad5ae0b7807ff5c326a |
@@ -923,6 +930,7 b' BROKEN: this should result in conflict' | |||
|
923 | 930 | other path: the-file (node 0000000000000000000000000000000000000000) |
|
924 | 931 | extra: ancestorlinknode = 9b610631ab29024c5f44af7d2c19658ef8f8f071 |
|
925 | 932 | extra: merge-removal-candidate = yes |
|
933 | extra: merged = yes | |
|
926 | 934 | #else |
|
927 | 935 | $ hg debugmergestate |
|
928 | 936 | local (working copy): e9b7081317232edce73f7ad5ae0b7807ff5c326a |
@@ -1844,6 +1844,7 b' The local node should now point to a non' | |||
|
1844 | 1844 | ancestor path: file (node bc7ebe2d260cff30d2a39a130d84add36216f791) |
|
1845 | 1845 | other path: file (node b789fdd96dc2f3bd229c1dd8eedf0fc60e2b68e3) |
|
1846 | 1846 | extra: ancestorlinknode = b73b8c9a4ab4da89a5a35a6f10dfb13edc84ca37 |
|
1847 | extra: merged = yes | |
|
1847 | 1848 | We should be able to see the log (without the deleted commit, of course) |
|
1848 | 1849 | $ hg log -G |
|
1849 | 1850 | @ 0:f53e9479dce5 (draft) [tip ] first |
@@ -95,6 +95,7 b' Insert unsupported advisory merge record' | |||
|
95 | 95 | ancestor path: common (node de0a666fdd9c1a0b0698b90d85064d8bd34f74b6) |
|
96 | 96 | other path: common (node 2f6411de53677f6f1048fef5bf888d67a342e0a5) |
|
97 | 97 | extra: ancestorlinknode = 3163e20567cc93074fbb7a53c8b93312e59dbf2c |
|
98 | extra: merged = yes | |
|
98 | 99 | $ hg resolve -l |
|
99 | 100 | U common |
|
100 | 101 |
@@ -255,11 +255,13 b' insert unsupported advisory merge record' | |||
|
255 | 255 | ancestor path: file1 (node 2ed2a3912a0b24502043eae84ee4b279c18b90dd) |
|
256 | 256 | other path: file1 (node 6f4310b00b9a147241b071a60c28a650827fb03d) |
|
257 | 257 | extra: ancestorlinknode = 99726c03216e233810a2564cbc0adfe395007eac |
|
258 | extra: merged = yes | |
|
258 | 259 | file: file2 (state "u") |
|
259 | 260 | local path: file2 (hash cb99b709a1978bd205ab9dfd4c5aaa1fc91c7523, flags "") |
|
260 | 261 | ancestor path: file2 (node 2ed2a3912a0b24502043eae84ee4b279c18b90dd) |
|
261 | 262 | other path: file2 (node 6f4310b00b9a147241b071a60c28a650827fb03d) |
|
262 | 263 | extra: ancestorlinknode = 99726c03216e233810a2564cbc0adfe395007eac |
|
264 | extra: merged = yes | |
|
263 | 265 | $ hg resolve -l |
|
264 | 266 | R file1 |
|
265 | 267 | U file2 |
@@ -271,7 +273,7 b' test json output' | |||
|
271 | 273 | { |
|
272 | 274 | "commits": [{"label": "working copy", "name": "local", "node": "57653b9f834a4493f7240b0681efcb9ae7cab745"}, {"label": "merge rev", "name": "other", "node": "dc77451844e37f03f5c559e3b8529b2b48d381d1"}], |
|
273 | 275 | "extras": [], |
|
274 | "files": [{"ancestor_node": "2ed2a3912a0b24502043eae84ee4b279c18b90dd", "ancestor_path": "file1", "extras": [{"key": "ancestorlinknode", "value": "99726c03216e233810a2564cbc0adfe395007eac"}], "local_flags": "", "local_key": "60b27f004e454aca81b0480209cce5081ec52390", "local_path": "file1", "other_node": "6f4310b00b9a147241b071a60c28a650827fb03d", "other_path": "file1", "path": "file1", "state": "r"}, {"ancestor_node": "2ed2a3912a0b24502043eae84ee4b279c18b90dd", "ancestor_path": "file2", "extras": [{"key": "ancestorlinknode", "value": "99726c03216e233810a2564cbc0adfe395007eac"}], "local_flags": "", "local_key": "cb99b709a1978bd205ab9dfd4c5aaa1fc91c7523", "local_path": "file2", "other_node": "6f4310b00b9a147241b071a60c28a650827fb03d", "other_path": "file2", "path": "file2", "state": "u"}] | |
|
276 | "files": [{"ancestor_node": "2ed2a3912a0b24502043eae84ee4b279c18b90dd", "ancestor_path": "file1", "extras": [{"key": "ancestorlinknode", "value": "99726c03216e233810a2564cbc0adfe395007eac"}, {"key": "merged", "value": "yes"}], "local_flags": "", "local_key": "60b27f004e454aca81b0480209cce5081ec52390", "local_path": "file1", "other_node": "6f4310b00b9a147241b071a60c28a650827fb03d", "other_path": "file1", "path": "file1", "state": "r"}, {"ancestor_node": "2ed2a3912a0b24502043eae84ee4b279c18b90dd", "ancestor_path": "file2", "extras": [{"key": "ancestorlinknode", "value": "99726c03216e233810a2564cbc0adfe395007eac"}, {"key": "merged", "value": "yes"}], "local_flags": "", "local_key": "cb99b709a1978bd205ab9dfd4c5aaa1fc91c7523", "local_path": "file2", "other_node": "6f4310b00b9a147241b071a60c28a650827fb03d", "other_path": "file2", "path": "file2", "state": "u"}] | |
|
275 | 277 | } |
|
276 | 278 | ] |
|
277 | 279 |
General Comments 0
You need to be logged in to leave comments.
Login now