##// END OF EJS Templates
merge: store commitinfo if these is a dc or cd conflict...
Pulkit Goyal -
r46158:4c8a93ec default
parent child Browse files
Show More
@@ -909,6 +909,10 b' def manifestmerge('
909 (f, None, f, False, pa.node()),
909 (f, None, f, False, pa.node()),
910 b'prompt changed/deleted',
910 b'prompt changed/deleted',
911 )
911 )
912 if branchmerge:
913 mresult.addcommitinfo(
914 f, b'merge-removal-candidate', b'yes'
915 )
912 elif n1 == addednodeid:
916 elif n1 == addednodeid:
913 # This file was locally added. We should forget it instead of
917 # This file was locally added. We should forget it instead of
914 # deleting it.
918 # deleting it.
@@ -1018,6 +1022,10 b' def manifestmerge('
1018 (None, f, f, False, pa.node()),
1022 (None, f, f, False, pa.node()),
1019 b'prompt deleted/changed',
1023 b'prompt deleted/changed',
1020 )
1024 )
1025 if branchmerge:
1026 mresult.addcommitinfo(
1027 f, b'merge-removal-candidate', b'yes'
1028 )
1021 else:
1029 else:
1022 mresult.addfile(
1030 mresult.addfile(
1023 f,
1031 f,
@@ -83,11 +83,13 b' Non-interactive merge:'
83 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
83 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
84 other path: file1 (node 0000000000000000000000000000000000000000)
84 other path: file1 (node 0000000000000000000000000000000000000000)
85 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
85 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
86 extra: merge-removal-candidate = yes
86 file: file2 (state "u")
87 file: file2 (state "u")
87 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
88 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
88 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
89 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
89 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
90 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
90 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
91 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
92 extra: merge-removal-candidate = yes
91 file: file3 (state "u")
93 file: file3 (state "u")
92 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
94 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
93 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
95 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
@@ -148,11 +150,13 b' Interactive merge:'
148 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
150 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
149 other path: file1 (node 0000000000000000000000000000000000000000)
151 other path: file1 (node 0000000000000000000000000000000000000000)
150 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
152 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
153 extra: merge-removal-candidate = yes
151 file: file2 (state "r")
154 file: file2 (state "r")
152 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
155 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
153 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
156 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
154 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
157 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
155 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
158 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
159 extra: merge-removal-candidate = yes
156 file: file3 (state "u")
160 file: file3 (state "u")
157 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
161 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
158 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
162 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
@@ -226,11 +230,13 b' Interactive merge with bad input:'
226 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
230 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
227 other path: file1 (node 0000000000000000000000000000000000000000)
231 other path: file1 (node 0000000000000000000000000000000000000000)
228 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
232 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
233 extra: merge-removal-candidate = yes
229 file: file2 (state "r")
234 file: file2 (state "r")
230 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
235 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
231 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
236 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
232 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
237 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
233 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
238 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
239 extra: merge-removal-candidate = yes
234 file: file3 (state "u")
240 file: file3 (state "u")
235 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
241 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
236 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
242 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
@@ -288,11 +294,13 b' Interactive merge with not enough input:'
288 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
294 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
289 other path: file1 (node 0000000000000000000000000000000000000000)
295 other path: file1 (node 0000000000000000000000000000000000000000)
290 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
296 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
297 extra: merge-removal-candidate = yes
291 file: file2 (state "u")
298 file: file2 (state "u")
292 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
299 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
293 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
300 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
294 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
301 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
295 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
302 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
303 extra: merge-removal-candidate = yes
296 file: file3 (state "u")
304 file: file3 (state "u")
297 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
305 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
298 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
306 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
@@ -337,11 +345,13 b' Choose local versions of files'
337 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
345 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
338 other path: file1 (node 0000000000000000000000000000000000000000)
346 other path: file1 (node 0000000000000000000000000000000000000000)
339 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
347 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
348 extra: merge-removal-candidate = yes
340 file: file2 (state "r")
349 file: file2 (state "r")
341 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
350 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
342 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
351 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
343 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
352 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
344 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
353 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
354 extra: merge-removal-candidate = yes
345 file: file3 (state "r")
355 file: file3 (state "r")
346 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
356 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
347 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
357 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
@@ -382,11 +392,13 b' Choose other versions of files'
382 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
392 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
383 other path: file1 (node 0000000000000000000000000000000000000000)
393 other path: file1 (node 0000000000000000000000000000000000000000)
384 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
394 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
395 extra: merge-removal-candidate = yes
385 file: file2 (state "r")
396 file: file2 (state "r")
386 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
397 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
387 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
398 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
388 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
399 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
389 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
400 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
401 extra: merge-removal-candidate = yes
390 file: file3 (state "r")
402 file: file3 (state "r")
391 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
403 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
392 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
404 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
@@ -428,11 +440,13 b' Fail'
428 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
440 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
429 other path: file1 (node 0000000000000000000000000000000000000000)
441 other path: file1 (node 0000000000000000000000000000000000000000)
430 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
442 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
443 extra: merge-removal-candidate = yes
431 file: file2 (state "u")
444 file: file2 (state "u")
432 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
445 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
433 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
446 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
434 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
447 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
435 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
448 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
449 extra: merge-removal-candidate = yes
436 file: file3 (state "u")
450 file: file3 (state "u")
437 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
451 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
438 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
452 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
@@ -485,11 +499,13 b' Force prompts with no input (should be s'
485 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
499 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
486 other path: file1 (node 0000000000000000000000000000000000000000)
500 other path: file1 (node 0000000000000000000000000000000000000000)
487 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
501 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
502 extra: merge-removal-candidate = yes
488 file: file2 (state "u")
503 file: file2 (state "u")
489 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
504 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
490 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
505 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
491 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
506 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
492 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
507 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
508 extra: merge-removal-candidate = yes
493 file: file3 (state "u")
509 file: file3 (state "u")
494 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
510 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
495 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
511 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
@@ -544,11 +560,13 b' Force prompts'
544 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
560 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
545 other path: file1 (node 0000000000000000000000000000000000000000)
561 other path: file1 (node 0000000000000000000000000000000000000000)
546 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
562 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
563 extra: merge-removal-candidate = yes
547 file: file2 (state "u")
564 file: file2 (state "u")
548 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
565 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
549 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
566 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
550 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
567 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
551 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
568 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
569 extra: merge-removal-candidate = yes
552 file: file3 (state "u")
570 file: file3 (state "u")
553 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
571 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
554 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
572 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
@@ -600,11 +618,13 b' Choose to merge all files'
600 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
618 ancestor path: file1 (node b8e02f6433738021a065f94175c7cd23db5f05be)
601 other path: file1 (node 0000000000000000000000000000000000000000)
619 other path: file1 (node 0000000000000000000000000000000000000000)
602 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
620 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
621 extra: merge-removal-candidate = yes
603 file: file2 (state "u")
622 file: file2 (state "u")
604 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
623 local path: file2 (hash 0000000000000000000000000000000000000000, flags "")
605 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
624 ancestor path: file2 (node 5d9299349fc01ddd25d0070d149b124d8f10411e)
606 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
625 other path: file2 (node e7c1328648519852e723de86c0c0525acd779257)
607 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
626 extra: ancestorlinknode = ab57bf49aa276a22d35a473592d4c34b5abc3eff
627 extra: merge-removal-candidate = yes
608 file: file3 (state "u")
628 file: file3 (state "u")
609 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
629 local path: file3 (hash d5b0a58bc47161b1b8a831084b366f757c4f0b11, flags "")
610 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
630 ancestor path: file3 (node 2661d26c649684b482d10f91960cc3db683c38b4)
@@ -539,6 +539,7 b' Do all the merge combination (from the deleted or the update side \xc3\x97 keeping and deleting the file'
539 ancestor path: the-file (node 4b69178b9bdae28b651393b46e631427a72f217a)
539 ancestor path: the-file (node 4b69178b9bdae28b651393b46e631427a72f217a)
540 other path: the-file (node 59e363a07dc876278f0e41756236f30213b6b460)
540 other path: the-file (node 59e363a07dc876278f0e41756236f30213b6b460)
541 extra: ancestorlinknode = 955800955977bd6c103836ee3e437276e940a589
541 extra: ancestorlinknode = 955800955977bd6c103836ee3e437276e940a589
542 extra: merge-removal-candidate = yes
542 extra: other-file (filenode-source = other)
543 extra: other-file (filenode-source = other)
543 $ hg ci -m "merge-deleting-the-file-from-deleted"
544 $ hg ci -m "merge-deleting-the-file-from-deleted"
544 $ hg manifest
545 $ hg manifest
@@ -561,6 +562,7 b' Do all the merge combination (from the deleted or the update side \xc3\x97 keeping and deleting the file'
561 ancestor path: the-file (node 4b69178b9bdae28b651393b46e631427a72f217a)
562 ancestor path: the-file (node 4b69178b9bdae28b651393b46e631427a72f217a)
562 other path: the-file (node 0000000000000000000000000000000000000000)
563 other path: the-file (node 0000000000000000000000000000000000000000)
563 extra: ancestorlinknode = 955800955977bd6c103836ee3e437276e940a589
564 extra: ancestorlinknode = 955800955977bd6c103836ee3e437276e940a589
565 extra: merge-removal-candidate = yes
564 $ hg ci -m "merge-deleting-the-file-from-updated"
566 $ hg ci -m "merge-deleting-the-file-from-updated"
565 created new head
567 created new head
566 $ hg manifest
568 $ hg manifest
@@ -583,6 +585,7 b' Do all the merge combination (from the deleted or the update side \xc3\x97 keeping and deleting the file'
583 ancestor path: the-file (node 4b69178b9bdae28b651393b46e631427a72f217a)
585 ancestor path: the-file (node 4b69178b9bdae28b651393b46e631427a72f217a)
584 other path: the-file (node 59e363a07dc876278f0e41756236f30213b6b460)
586 other path: the-file (node 59e363a07dc876278f0e41756236f30213b6b460)
585 extra: ancestorlinknode = 955800955977bd6c103836ee3e437276e940a589
587 extra: ancestorlinknode = 955800955977bd6c103836ee3e437276e940a589
588 extra: merge-removal-candidate = yes
586 extra: other-file (filenode-source = other)
589 extra: other-file (filenode-source = other)
587 $ hg ci -m "merge-keeping-the-file-from-deleted"
590 $ hg ci -m "merge-keeping-the-file-from-deleted"
588 created new head
591 created new head
@@ -612,6 +615,7 b' in consideration.'
612 ancestor path: the-file (node 4b69178b9bdae28b651393b46e631427a72f217a)
615 ancestor path: the-file (node 4b69178b9bdae28b651393b46e631427a72f217a)
613 other path: the-file (node 0000000000000000000000000000000000000000)
616 other path: the-file (node 0000000000000000000000000000000000000000)
614 extra: ancestorlinknode = 955800955977bd6c103836ee3e437276e940a589
617 extra: ancestorlinknode = 955800955977bd6c103836ee3e437276e940a589
618 extra: merge-removal-candidate = yes
615 $ hg ci -m "merge-keeping-the-file-from-updated"
619 $ hg ci -m "merge-keeping-the-file-from-updated"
616 created new head
620 created new head
617 $ hg manifest
621 $ hg manifest
General Comments 0
You need to be logged in to leave comments. Login now