changeset 8077:d051342f1ad1

manifest: improve error message about newlines in filenames Include the offending filenames in the error message. Now this error message is consistent with the same error issued by dirstate.py (although there is still duplicate code).
author Greg Ward <greg-hg@gerg.ca>
date Sat, 18 Apr 2009 09:48:59 -0400
parents e8a28556a0a8
children ab55a5122ea3
files mercurial/manifest.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/manifest.py	Thu Apr 16 15:34:03 2009 +0200
+++ b/mercurial/manifest.py	Sat Apr 18 09:48:59 2009 -0400
@@ -125,7 +125,7 @@
             for f in l:
                 if '\n' in f or '\r' in f:
                     raise error.RevlogError(
-                        _("'\\n' and '\\r' disallowed in filenames"))
+                        _("'\\n' and '\\r' disallowed in filenames: %r") % f)
 
         # if we're using the listcache, make sure it is valid and
         # parented by the same node we're diffing against