# HG changeset patch # User Matt Mackall # Date 2010-06-20 19:21:56 # Node ID 6f1d1ed3e19aaf4bfc14741956e0e6ff06fbe9d2 # Parent caf10970950e69f9b05deab2660ba57425dab637 merge: improve merge with ancestor message diff --git a/mercurial/merge.py b/mercurial/merge.py --- a/mercurial/merge.py +++ b/mercurial/merge.py @@ -467,7 +467,8 @@ def update(repo, node, branchmerge, forc raise util.Abort(_("outstanding uncommitted merges")) if branchmerge: if pa == p2: - raise util.Abort(_("can't merge with ancestor")) + raise util.Abort(_("merging with a working directory ancestor" + " has no effect")) elif pa == p1: if p1.branch() != p2.branch(): fastforward = True diff --git a/tests/test-issue619.out b/tests/test-issue619.out --- a/tests/test-issue619.out +++ b/tests/test-issue619.out @@ -6,5 +6,5 @@ fast-forward 1 files updated, 0 files merged, 0 files removed, 0 files unresolved (branch merge, don't forget to commit) bogus fast-forward should fail -abort: can't merge with ancestor +abort: merging with a working directory ancestor has no effect done