diff --git a/mercurial/destutil.py b/mercurial/destutil.py --- a/mercurial/destutil.py +++ b/mercurial/destutil.py @@ -182,14 +182,14 @@ msgdestmerge = { b"multiple matching bookmarks to merge -" b" please merge with an explicit rev or bookmark" ), - _(b"run 'hg heads' to see all heads"), + _(b"run 'hg heads' to see all heads, specify rev with -r"), ), b'rebase': ( _( b"multiple matching bookmarks to rebase -" b" please rebase to an explicit rev or bookmark" ), - _(b"run 'hg heads' to see all heads"), + _(b"run 'hg heads' to see all heads, specify destination with -d"), ), }, # no other matching divergent bookmark @@ -199,47 +199,47 @@ msgdestmerge = { b"no matching bookmark to merge - " b"please merge with an explicit rev or bookmark" ), - _(b"run 'hg heads' to see all heads"), + _(b"run 'hg heads' to see all heads, specify rev with -r"), ), b'rebase': ( _( b"no matching bookmark to rebase - " b"please rebase to an explicit rev or bookmark" ), - _(b"run 'hg heads' to see all heads"), + _(b"run 'hg heads' to see all heads, specify destination with -d"), ), }, # branch have too many unbookmarked heads, no obvious destination b'toomanyheads': { b'merge': ( _(b"branch '%s' has %d heads - please merge with an explicit rev"), - _(b"run 'hg heads .' to see heads"), + _(b"run 'hg heads .' to see heads, specify rev with -r"), ), b'rebase': ( _(b"branch '%s' has %d heads - please rebase to an explicit rev"), - _(b"run 'hg heads .' to see heads"), + _(b"run 'hg heads .' to see heads, specify destination with -d"), ), }, # branch have no other unbookmarked heads b'bookmarkedheads': { b'merge': ( _(b"heads are bookmarked - please merge with an explicit rev"), - _(b"run 'hg heads' to see all heads"), + _(b"run 'hg heads' to see all heads, specify rev with -r"), ), b'rebase': ( _(b"heads are bookmarked - please rebase to an explicit rev"), - _(b"run 'hg heads' to see all heads"), + _(b"run 'hg heads' to see all heads, specify destination with -d"), ), }, # branch have just a single heads, but there is other branches b'nootherbranchheads': { b'merge': ( _(b"branch '%s' has one head - please merge with an explicit rev"), - _(b"run 'hg heads' to see all heads"), + _(b"run 'hg heads' to see all heads, specify rev with -r"), ), b'rebase': ( _(b"branch '%s' has one head - please rebase to an explicit rev"), - _(b"run 'hg heads' to see all heads"), + _(b"run 'hg heads' to see all heads, specify destination with -d"), ), }, # repository have a single head diff --git a/tests/test-bookmarks-merge.t b/tests/test-bookmarks-merge.t --- a/tests/test-bookmarks-merge.t +++ b/tests/test-bookmarks-merge.t @@ -58,7 +58,7 @@ (leaving bookmark e) $ hg merge abort: heads are bookmarked - please merge with an explicit rev - (run 'hg heads' to see all heads) + (run 'hg heads' to see all heads, specify rev with -r) [255] # our revision is bookmarked @@ -68,7 +68,7 @@ (activating bookmark e) $ hg merge abort: no matching bookmark to merge - please merge with an explicit rev or bookmark - (run 'hg heads' to see all heads) + (run 'hg heads' to see all heads, specify rev with -r) [255] # merge bookmark heads @@ -148,5 +148,5 @@ $ hg merge abort: heads are bookmarked - please merge with an explicit rev - (run 'hg heads' to see all heads) + (run 'hg heads' to see all heads, specify rev with -r) [255] diff --git a/tests/test-merge-closedheads.t b/tests/test-merge-closedheads.t --- a/tests/test-merge-closedheads.t +++ b/tests/test-merge-closedheads.t @@ -43,7 +43,7 @@ fail with three heads 0 files updated, 0 files merged, 0 files removed, 0 files unresolved $ hg merge abort: branch 'default' has 3 heads - please merge with an explicit rev - (run 'hg heads .' to see heads) + (run 'hg heads .' to see heads, specify rev with -r) [255] close one of the heads diff --git a/tests/test-merge-default.t b/tests/test-merge-default.t --- a/tests/test-merge-default.t +++ b/tests/test-merge-default.t @@ -41,7 +41,7 @@ Should fail because > 2 heads: $ HGMERGE=internal:other; export HGMERGE $ hg merge abort: branch 'default' has 3 heads - please merge with an explicit rev - (run 'hg heads .' to see heads) + (run 'hg heads .' to see heads, specify rev with -r) [255] Should succeed: @@ -117,7 +117,7 @@ Should fail because merge with other bra $ hg merge abort: branch 'foobranch' has one head - please merge with an explicit rev - (run 'hg heads' to see all heads) + (run 'hg heads' to see all heads, specify rev with -r) [255] @@ -137,7 +137,7 @@ Test experimental destination revset $ hg log -r '_destmerge()' abort: branch 'foobranch' has one head - please merge with an explicit rev - (run 'hg heads' to see all heads) + (run 'hg heads' to see all heads, specify rev with -r) [255] (on a branch with a two heads) @@ -171,5 +171,5 @@ Test experimental destination revset $ hg log -r '_destmerge(foobranch)' abort: branch 'foobranch' has one head - please merge with an explicit rev - (run 'hg heads' to see all heads) + (run 'hg heads' to see all heads, specify rev with -r) [255] diff --git a/tests/test-newbranch.t b/tests/test-newbranch.t --- a/tests/test-newbranch.t +++ b/tests/test-newbranch.t @@ -318,7 +318,7 @@ Implicit merge with test branch as paren $ hg merge abort: branch 'test' has one head - please merge with an explicit rev - (run 'hg heads' to see all heads) + (run 'hg heads' to see all heads, specify rev with -r) [255] $ hg up -C default 1 files updated, 0 files merged, 1 files removed, 0 files unresolved @@ -327,7 +327,7 @@ Implicit merge with default branch as pa $ hg merge abort: branch 'default' has 3 heads - please merge with an explicit rev - (run 'hg heads .' to see heads) + (run 'hg heads .' to see heads, specify rev with -r) [255] 3 branch heads, explicit merge required: diff --git a/tests/test-rebase-named-branches.t b/tests/test-rebase-named-branches.t --- a/tests/test-rebase-named-branches.t +++ b/tests/test-rebase-named-branches.t @@ -374,7 +374,7 @@ rebase 'c1' to the branch head 'c2' that $ hg rebase abort: branch 'c' has one head - please rebase to an explicit rev - (run 'hg heads' to see all heads) + (run 'hg heads' to see all heads, specify destination with -d) [255] $ hg tglog _ 4: 8427af5d86f2 'c2 closed' c diff --git a/tests/test-rebase-parameters.t b/tests/test-rebase-parameters.t --- a/tests/test-rebase-parameters.t +++ b/tests/test-rebase-parameters.t @@ -85,7 +85,7 @@ These fail: $ hg rebase --base 6 abort: branch 'default' has 3 heads - please rebase to an explicit rev - (run 'hg heads .' to see heads) + (run 'hg heads .' to see heads, specify destination with -d) [255] $ hg rebase --rev '1 & !1' --dest 8