diff --git a/mercurial/filemerge.py b/mercurial/filemerge.py --- a/mercurial/filemerge.py +++ b/mercurial/filemerge.py @@ -298,7 +298,7 @@ def _formatconflictmarker(repo, ctx, tem '{ifeq(tags, "tip", "", "{tags} ")}' + '{if(bookmarks, "{bookmarks} ")}' + '{ifeq(branch, "default", "", "{branch} ")}' + - '- {author|user}: "{desc|firstline}"') + '- {author|user}: {desc|firstline}') _defaultconflictlabels = ['local', 'other'] diff --git a/tests/test-commit-amend.t b/tests/test-commit-amend.t --- a/tests/test-commit-amend.t +++ b/tests/test-commit-amend.t @@ -589,7 +589,7 @@ Amend a merge changeset (with renames an no more unresolved files $ hg ci -m 'merge bar' $ hg log --config diff.git=1 -pr . - changeset: 23:29ee7aa200c8 + changeset: 23:93cd4445f720 tag: tip parent: 22:30d96aeaf27b parent: 21:1aa437659d19 @@ -604,11 +604,11 @@ Amend a merge changeset (with renames an --- a/cc +++ b/cc @@ -1,1 +1,5 @@ - +<<<<<<< local: 30d96aeaf27b - test: "aa" + +<<<<<<< local: 30d96aeaf27b - test: aa dd +======= +cc - +>>>>>>> other: 1aa437659d19 bar - test: "aazzcc" + +>>>>>>> other: 1aa437659d19 bar - test: aazzcc diff --git a/z b/zz rename from z rename to zz @@ -621,7 +621,7 @@ Amend a merge changeset (with renames an cc not renamed $ hg ci --amend -m 'merge bar (amend message)' $ hg log --config diff.git=1 -pr . - changeset: 24:ba3eb3e8e8c2 + changeset: 24:832b50f2c271 tag: tip parent: 22:30d96aeaf27b parent: 21:1aa437659d19 @@ -636,11 +636,11 @@ Amend a merge changeset (with renames an --- a/cc +++ b/cc @@ -1,1 +1,5 @@ - +<<<<<<< local: 30d96aeaf27b - test: "aa" + +<<<<<<< local: 30d96aeaf27b - test: aa dd +======= +cc - +>>>>>>> other: 1aa437659d19 bar - test: "aazzcc" + +>>>>>>> other: 1aa437659d19 bar - test: aazzcc diff --git a/z b/zz rename from z rename to zz @@ -654,7 +654,7 @@ Amend a merge changeset (with renames an $ hg mv zz z $ hg ci --amend -m 'merge bar (undo rename)' $ hg log --config diff.git=1 -pr . - changeset: 26:0ce8747233f6 + changeset: 26:bdafc5c72f74 tag: tip parent: 22:30d96aeaf27b parent: 21:1aa437659d19 @@ -669,11 +669,11 @@ Amend a merge changeset (with renames an --- a/cc +++ b/cc @@ -1,1 +1,5 @@ - +<<<<<<< local: 30d96aeaf27b - test: "aa" + +<<<<<<< local: 30d96aeaf27b - test: aa dd +======= +cc - +>>>>>>> other: 1aa437659d19 bar - test: "aazzcc" + +>>>>>>> other: 1aa437659d19 bar - test: aazzcc $ hg debugrename z z not renamed @@ -690,9 +690,9 @@ Amend a merge changeset (with renames du $ echo aa >> aaa $ hg ci -m 'merge bar again' $ hg log --config diff.git=1 -pr . - changeset: 28:b8235574e741 + changeset: 28:32f19415b634 tag: tip - parent: 26:0ce8747233f6 + parent: 26:bdafc5c72f74 parent: 27:4c94d5bc65f5 user: test date: Thu Jan 01 00:00:00 1970 +0000 @@ -725,9 +725,9 @@ Amend a merge changeset (with renames du $ hg mv aaa aa $ hg ci --amend -m 'merge bar again (undo rename)' $ hg log --config diff.git=1 -pr . - changeset: 30:dbafc132c18a + changeset: 30:1e2a06b3d312 tag: tip - parent: 26:0ce8747233f6 + parent: 26:bdafc5c72f74 parent: 27:4c94d5bc65f5 user: test date: Thu Jan 01 00:00:00 1970 +0000 @@ -765,9 +765,9 @@ Amend a merge changeset (with manifest-l use (c)hanged version or (d)elete? c $ hg ci -m 'merge bar (with conflicts)' $ hg log --config diff.git=1 -pr . - changeset: 33:8b0c83445ff5 + changeset: 33:97a298b0c59f tag: tip - parent: 32:f60ace0fe178 + parent: 32:3d78ce4226b8 parent: 31:67db8847a540 user: test date: Thu Jan 01 00:00:00 1970 +0000 @@ -777,9 +777,9 @@ Amend a merge changeset (with manifest-l $ hg rm aa $ hg ci --amend -m 'merge bar (with conflicts, amended)' $ hg log --config diff.git=1 -pr . - changeset: 35:f9b6726d8bd2 + changeset: 35:6de0c1bde1c8 tag: tip - parent: 32:f60ace0fe178 + parent: 32:3d78ce4226b8 parent: 31:67db8847a540 user: test date: Thu Jan 01 00:00:00 1970 +0000 diff --git a/tests/test-conflict.t b/tests/test-conflict.t --- a/tests/test-conflict.t +++ b/tests/test-conflict.t @@ -22,11 +22,11 @@ 32e80765d7fe+75234512624c+ tip $ cat a - <<<<<<< local: 32e80765d7fe - test: "branch2" + <<<<<<< local: 32e80765d7fe - test: branch2 something else ======= something - >>>>>>> other: 75234512624c - test: "branch1" + >>>>>>> other: 75234512624c - test: branch1 $ hg status M a diff --git a/tests/test-keyword.t b/tests/test-keyword.t --- a/tests/test-keyword.t +++ b/tests/test-keyword.t @@ -1049,11 +1049,11 @@ conflict: keyword should stay outside co [1] $ cat m $Id$ - <<<<<<< local: 88a80c8d172e - test: "8bar" + <<<<<<< local: 88a80c8d172e - test: 8bar bar ======= foo - >>>>>>> other: 85d2d2d732a5 - test: "simplemerge" + >>>>>>> other: 85d2d2d732a5 - test: simplemerge resolve to local diff --git a/tests/test-merge-revert2.t b/tests/test-merge-revert2.t --- a/tests/test-merge-revert2.t +++ b/tests/test-merge-revert2.t @@ -57,11 +57,11 @@ @@ -1,3 +1,7 @@ added file1 another line of text - +<<<<<<< working copy: c3fa057dd86f - test: "added file1 and file2" + +<<<<<<< working copy: c3fa057dd86f - test: added file1 and file2 +changed file1 different +======= changed file1 - +>>>>>>> destination: dfab7f3c2efb - test: "changed file1" + +>>>>>>> destination: dfab7f3c2efb - test: changed file1 $ hg status M file1 diff --git a/tests/test-merge-tools.t b/tests/test-merge-tools.t --- a/tests/test-merge-tools.t +++ b/tests/test-merge-tools.t @@ -66,11 +66,11 @@ running from a devel copy, not a temp in [1] $ aftermerge # cat f - <<<<<<< local: ef83787e2614 - test: "revision 1" + <<<<<<< local: ef83787e2614 - test: revision 1 revision 1 ======= revision 2 - >>>>>>> other: 0185f4e0cf02 - test: "revision 2" + >>>>>>> other: 0185f4e0cf02 - test: revision 2 space # hg stat M f diff --git a/tests/test-merge-types.t b/tests/test-merge-types.t --- a/tests/test-merge-types.t +++ b/tests/test-merge-types.t @@ -290,18 +290,18 @@ h: l vs l, different U h $ tellmeabout a a is a plain file with content: - <<<<<<< local: 0139c5610547 - test: "2" + <<<<<<< local: 0139c5610547 - test: 2 2 ======= 1 - >>>>>>> other: 97e29675e796 - test: "1" + >>>>>>> other: 97e29675e796 - test: 1 $ tellmeabout b b is a plain file with content: - <<<<<<< local: 0139c5610547 - test: "2" + <<<<<<< local: 0139c5610547 - test: 2 2 ======= 1 - >>>>>>> other: 97e29675e796 - test: "1" + >>>>>>> other: 97e29675e796 - test: 1 $ tellmeabout c c is a plain file with content: x @@ -345,18 +345,18 @@ h: l vs l, different [1] $ tellmeabout a a is a plain file with content: - <<<<<<< local: 97e29675e796 - test: "1" + <<<<<<< local: 97e29675e796 - test: 1 1 ======= 2 - >>>>>>> other: 0139c5610547 - test: "2" + >>>>>>> other: 0139c5610547 - test: 2 $ tellmeabout b b is an executable file with content: - <<<<<<< local: 97e29675e796 - test: "1" + <<<<<<< local: 97e29675e796 - test: 1 1 ======= 2 - >>>>>>> other: 0139c5610547 - test: "2" + >>>>>>> other: 0139c5610547 - test: 2 $ tellmeabout c c is an executable file with content: x diff --git a/tests/test-merge7.t b/tests/test-merge7.t --- a/tests/test-merge7.t +++ b/tests/test-merge7.t @@ -98,11 +98,11 @@ pull and merge from test-a again $ cat test.txt one - <<<<<<< local: 50c3a7e29886 - test: "Merge 1" + <<<<<<< local: 50c3a7e29886 - test: Merge 1 two-point-five ======= two-point-one - >>>>>>> other: 40d11a4173a8 - test: "two -> two-point-one" + >>>>>>> other: 40d11a4173a8 - test: two -> two-point-one three $ hg debugindex test.txt diff --git a/tests/test-shelve.t b/tests/test-shelve.t --- a/tests/test-shelve.t +++ b/tests/test-shelve.t @@ -210,11 +210,11 @@ ensure that we have a merge with unresol +++ b/a/a @@ -1,2 +1,6 @@ a - +<<<<<<< dest: * - shelve: "pending changes temporary commit" (glob) + +<<<<<<< dest: * - shelve: pending changes temporary commit (glob) c +======= +a - +>>>>>>> source: * - shelve: "changes to '[mq]: second.patch'" (glob) + +>>>>>>> source: 4702e8911fe0 - shelve: changes to '[mq]: second.patch' diff --git a/b.rename/b b/b.rename/b new file mode 100644 --- /dev/null @@ -602,11 +602,11 @@ unshelve and conflicts with tracked and M f ? f.orig $ cat f - <<<<<<< dest: 5f6b880e719b - shelve: "pending changes temporary commit" + <<<<<<< dest: 5f6b880e719b - shelve: pending changes temporary commit g ======= f - >>>>>>> source: 23b29cada8ba - shelve: "changes to 'commit stuff'" + >>>>>>> source: 23b29cada8ba - shelve: changes to 'commit stuff' $ cat f.orig g $ hg unshelve --abort @@ -645,11 +645,11 @@ unshelve and conflicts with tracked and M f ? f.orig $ cat f - <<<<<<< dest: 6b563750f973 - test: "intermediate other change" + <<<<<<< dest: * - test: intermediate other change (glob) g ======= f - >>>>>>> source: 23b29cada8ba - shelve: "changes to 'commit stuff'" + >>>>>>> source: 23b29cada8ba - shelve: changes to 'commit stuff' $ cat f.orig g $ hg unshelve --abort diff --git a/tests/test-subrepo.t b/tests/test-subrepo.t --- a/tests/test-subrepo.t +++ b/tests/test-subrepo.t @@ -298,11 +298,11 @@ merge tests should conflict $ cat t/t - <<<<<<< local: 20a0db6fbf6c - test: "10" + <<<<<<< local: 20a0db6fbf6c - test: 10 conflict ======= t3 - >>>>>>> other: 7af322bc1198 - test: "7" + >>>>>>> other: 7af322bc1198 - test: 7 clone