Clarify untracked file merge message
authorMatt Mackall <mpm@selenic.com>
Wed, 01 Nov 2006 21:47:55 -0600
changeset 3618 3109f012c305
parent 3617 638193139ba8
child 3619 8c4fd0de5de8
Clarify untracked file merge message
mercurial/merge.py
tests/test-merge1.out
--- a/mercurial/merge.py	Mon Nov 06 22:01:09 2006 -0800
+++ b/mercurial/merge.py	Wed Nov 01 21:47:55 2006 -0600
@@ -65,8 +65,8 @@
     for f in wctx.unknown():
         if f in man:
             if mctx.filectx(f).cmp(wctx.filectx(f).data()):
-                raise util.Abort(_("'%s' already exists in the working"
-                                   " dir and differs from remote") % f)
+                raise util.Abort(_("untracked local file '%s' differs"\
+                                   " from remote version") % f)
 
 def forgetremoved(wctx, mctx):
     """
--- a/tests/test-merge1.out	Mon Nov 06 22:01:09 2006 -0800
+++ b/tests/test-merge1.out	Wed Nov 01 21:47:55 2006 -0600
@@ -10,7 +10,7 @@
 M b
 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
 %% merge should fail
-abort: 'b' already exists in the working dir and differs from remote
+abort: untracked local file 'b' differs from remote version
 %% merge of b expected
 merging for b
 merging b