##// END OF EJS Templates
graft: use a real conflict for the tests...
Martin von Zweigbergk -
r23463:bb0143e1 default
parent child Browse files
Show More
@@ -361,7 +361,7 b' Resolve conflicted graft'
361 $ echo b > a
361 $ echo b > a
362 $ hg ci -m 8
362 $ hg ci -m 8
363 created new head
363 created new head
364 $ echo a > a
364 $ echo c > a
365 $ hg ci -m 9
365 $ hg ci -m 9
366 $ hg graft 1 --tool internal:fail
366 $ hg graft 1 --tool internal:fail
367 grafting revision 1
367 grafting revision 1
@@ -370,6 +370,17 b' Resolve conflicted graft'
370 [255]
370 [255]
371 $ hg resolve --all
371 $ hg resolve --all
372 merging a
372 merging a
373 warning: conflicts during merge.
374 merging a incomplete! (edit conflicts, then use 'hg resolve --mark')
375 [1]
376 $ cat a
377 <<<<<<< local: aaa4406d4f0a - test: 9
378 c
379 =======
380 b
381 >>>>>>> other: 5d205f8b35b6 - bar: 1
382 $ echo b > a
383 $ hg resolve -m a
373 (no more unresolved files)
384 (no more unresolved files)
374 $ hg graft -c
385 $ hg graft -c
375 grafting revision 1
386 grafting revision 1
@@ -378,15 +389,15 b' Resolve conflicted graft'
378 # User bar
389 # User bar
379 # Date 0 0
390 # Date 0 0
380 # Thu Jan 01 00:00:00 1970 +0000
391 # Thu Jan 01 00:00:00 1970 +0000
381 # Node ID 64ecd9071ce83c6e62f538d8ce7709d53f32ebf7
392 # Node ID f67661df0c4804d301f064f332b57e7d5ddaf2be
382 # Parent 4bdb9a9d0b84ffee1d30f0dfc7744cade17aa19c
393 # Parent aaa4406d4f0ae9befd6e58c82ec63706460cbca6
383 1
394 1
384
395
385 diff --git a/a b/a
396 diff --git a/a b/a
386 --- a/a
397 --- a/a
387 +++ b/a
398 +++ b/a
388 @@ -1,1 +1,1 @@
399 @@ -1,1 +1,1 @@
389 -a
400 -c
390 +b
401 +b
391
402
392 Resolve conflicted graft with rename
403 Resolve conflicted graft with rename
@@ -407,8 +418,8 b' Resolve conflicted graft with rename'
407 # User test
418 # User test
408 # Date 0 0
419 # Date 0 0
409 # Thu Jan 01 00:00:00 1970 +0000
420 # Thu Jan 01 00:00:00 1970 +0000
410 # Node ID 2e80e1351d6ed50302fe1e05f8bd1d4d412b6e11
421 # Node ID 9627f653b421c61fc1ea4c4e366745070fa3d2bc
411 # Parent e5a51ae854a8bbaaf25cc5c6a57ff46042dadbb4
422 # Parent ee295f490a40b97f3d18dd4c4f1c8936c233b612
412 2
423 2
413
424
414 diff --git a/a b/b
425 diff --git a/a b/b
@@ -537,12 +548,12 b' Test simple destination'
537 date: Thu Jan 01 00:00:00 1970 +0000
548 date: Thu Jan 01 00:00:00 1970 +0000
538 summary: 3
549 summary: 3
539
550
540 changeset: 17:64ecd9071ce8
551 changeset: 17:f67661df0c48
541 user: bar
552 user: bar
542 date: Thu Jan 01 00:00:00 1970 +0000
553 date: Thu Jan 01 00:00:00 1970 +0000
543 summary: 1
554 summary: 1
544
555
545 changeset: 19:2e80e1351d6e
556 changeset: 19:9627f653b421
546 user: test
557 user: test
547 date: Thu Jan 01 00:00:00 1970 +0000
558 date: Thu Jan 01 00:00:00 1970 +0000
548 summary: 2
559 summary: 2
@@ -566,7 +577,7 b' Test simple destination'
566 date: Thu Jan 01 00:00:00 1970 +0000
577 date: Thu Jan 01 00:00:00 1970 +0000
567 summary: 2
578 summary: 2
568
579
569 changeset: 19:2e80e1351d6e
580 changeset: 19:9627f653b421
570 user: test
581 user: test
571 date: Thu Jan 01 00:00:00 1970 +0000
582 date: Thu Jan 01 00:00:00 1970 +0000
572 summary: 2
583 summary: 2
@@ -608,7 +619,7 b' All copies of a cset'
608 date: Thu Jan 01 00:00:00 1970 +0000
619 date: Thu Jan 01 00:00:00 1970 +0000
609 summary: 2
620 summary: 2
610
621
611 changeset: 19:2e80e1351d6e
622 changeset: 19:9627f653b421
612 user: test
623 user: test
613 date: Thu Jan 01 00:00:00 1970 +0000
624 date: Thu Jan 01 00:00:00 1970 +0000
614 summary: 2
625 summary: 2
@@ -669,9 +680,8 b' graft --force after backout'
669
680
670 graft --continue after --force
681 graft --continue after --force
671
682
672 $ hg backout 30
683 $ echo def > a
673 reverting a
684 $ hg ci -m 31
674 changeset 31:3b96c18b7a1b backs out changeset 30:8f539994be33
675 $ hg graft 28 --force --tool internal:fail
685 $ hg graft 28 --force --tool internal:fail
676 grafting revision 28
686 grafting revision 28
677 abort: unresolved conflicts, can't continue
687 abort: unresolved conflicts, can't continue
@@ -679,6 +689,11 b' graft --continue after --force'
679 [255]
689 [255]
680 $ hg resolve --all
690 $ hg resolve --all
681 merging a
691 merging a
692 warning: conflicts during merge.
693 merging a incomplete! (edit conflicts, then use 'hg resolve --mark')
694 [1]
695 $ echo abc > a
696 $ hg resolve -m a
682 (no more unresolved files)
697 (no more unresolved files)
683 $ hg graft -c
698 $ hg graft -c
684 grafting revision 28
699 grafting revision 28
General Comments 0
You need to be logged in to leave comments. Login now