##// END OF EJS Templates
merge: consider the file merged when using :merge-{local,other}...
Martin von Zweigbergk -
r49415:50de0890 default
parent child Browse files
Show More
@@ -483,7 +483,7 b' def simplemerge(ui, localctx, basectx, o'
483 basetext = readctx(basectx)
483 basetext = readctx(basectx)
484 othertext = readctx(otherctx)
484 othertext = readctx(otherctx)
485 except error.Abort:
485 except error.Abort:
486 return 1
486 return True
487
487
488 m3 = Merge3Text(basetext, localtext, othertext)
488 m3 = Merge3Text(basetext, localtext, othertext)
489 conflicts = False
489 conflicts = False
@@ -511,5 +511,4 b' def simplemerge(ui, localctx, basectx, o'
511 # mergestate.resolve())
511 # mergestate.resolve())
512 localctx.write(mergedtext, localctx.flags())
512 localctx.write(mergedtext, localctx.flags())
513
513
514 if conflicts:
514 return conflicts
515 return 1
@@ -886,7 +886,7 b' track of possible further descendants in'
886 created new head
886 created new head
887 $ hg merge --tool :merge-other 24
887 $ hg merge --tool :merge-other 24
888 merging baz
888 merging baz
889 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
889 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
890 (branch merge, don't forget to commit)
890 (branch merge, don't forget to commit)
891 $ hg ci -m 'merge forgetting about baz rewrite'
891 $ hg ci -m 'merge forgetting about baz rewrite'
892 $ cat > baz << EOF
892 $ cat > baz << EOF
@@ -404,7 +404,7 b' Now test :merge-other and :merge-local'
404 1 other heads for branch "default"
404 1 other heads for branch "default"
405 $ hg merge --tool :merge-local
405 $ hg merge --tool :merge-local
406 merging a
406 merging a
407 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
407 1 files updated, 1 files merged, 0 files removed, 0 files unresolved
408 (branch merge, don't forget to commit)
408 (branch merge, don't forget to commit)
409 $ cat a
409 $ cat a
410 Start of file
410 Start of file
@@ -463,14 +463,14 b' Subcase: new copy information on both si'
463 3 files updated, 0 files merged, 2 files removed, 0 files unresolved
463 3 files updated, 0 files merged, 2 files removed, 0 files unresolved
464 $ hg merge 'desc("q-2")' --tool ':union'
464 $ hg merge 'desc("q-2")' --tool ':union'
465 merging v
465 merging v
466 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
466 0 files updated, 1 files merged, 1 files removed, 0 files unresolved
467 (branch merge, don't forget to commit)
467 (branch merge, don't forget to commit)
468 $ hg ci -m "mPQm-0 $case_desc - one way"
468 $ hg ci -m "mPQm-0 $case_desc - one way"
469 $ hg up 'desc("q-2")'
469 $ hg up 'desc("q-2")'
470 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
470 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
471 $ hg merge 'desc("p-2")' --tool ':union'
471 $ hg merge 'desc("p-2")' --tool ':union'
472 merging v
472 merging v
473 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
473 0 files updated, 1 files merged, 1 files removed, 0 files unresolved
474 (branch merge, don't forget to commit)
474 (branch merge, don't forget to commit)
475 $ hg ci -m "mQPm-0 $case_desc - the other way"
475 $ hg ci -m "mQPm-0 $case_desc - the other way"
476 created new head
476 created new head
@@ -626,14 +626,14 b' consider history and rename on both bran'
626 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
626 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
627 $ hg merge 'desc("g-1")' --tool :union
627 $ hg merge 'desc("g-1")' --tool :union
628 merging d
628 merging d
629 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
629 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
630 (branch merge, don't forget to commit)
630 (branch merge, don't forget to commit)
631 $ hg ci -m "mDGm-0 $case_desc - one way"
631 $ hg ci -m "mDGm-0 $case_desc - one way"
632 $ hg up 'desc("g-1")'
632 $ hg up 'desc("g-1")'
633 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
633 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
634 $ hg merge 'desc("d-2")' --tool :union
634 $ hg merge 'desc("d-2")' --tool :union
635 merging d
635 merging d
636 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
636 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
637 (branch merge, don't forget to commit)
637 (branch merge, don't forget to commit)
638 $ hg ci -m "mGDm-0 $case_desc - the other way"
638 $ hg ci -m "mGDm-0 $case_desc - the other way"
639 created new head
639 created new head
@@ -130,7 +130,7 b' Merge using internal:union tool:'
130
130
131 $ hg merge 3
131 $ hg merge 3
132 merging f
132 merging f
133 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
133 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
134 (branch merge, don't forget to commit)
134 (branch merge, don't forget to commit)
135
135
136 $ cat f
136 $ cat f
General Comments 0
You need to be logged in to leave comments. Login now