Automated merge with http://hg.intevation.org/mercurial/crew
authorBryan O'Sullivan <bos@serpentine.com>
Wed, 01 Aug 2007 12:03:50 -0700
changeset 5044 ed68c8c31c9a
parent 5043 8b1ee1f59b3c (diff)
parent 5042 58006f8b8275 (current diff)
child 5047 d9689c6474bd
Automated merge with http://hg.intevation.org/mercurial/crew
tests/test-imerge
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -191,13 +191,14 @@ class dirstate(object):
             raise util.Abort(_("'\\n' and '\\r' disallowed in filenames"))
         # shadows
         if f in self._dirs:
-            raise util.Abort(_('directory named %r already in dirstate') % f)
+            raise util.Abort(_('directory %r already in dirstate') % f)
         for c in strutil.rfindall(f, '/'):
             d = f[:c]
             if d in self._dirs:
                 break
             if d in self._map:
-                raise util.Abort(_('file named %r already in dirstate') % d)
+                raise util.Abort(_('file %r in dirstate clashes with %r') %
+                                 (d, f))
         self._incpath(f)
 
     def normal(self, f):