# HG changeset patch # User Greg Ward # Date 2009-04-18 13:48:59 # Node ID d051342f1ad104a849af2be4f8a1d4df6e5b5565 # Parent e8a28556a0a8b03742cf56a43bff31ae1cc72922 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). diff --git a/mercurial/manifest.py b/mercurial/manifest.py --- a/mercurial/manifest.py +++ b/mercurial/manifest.py @@ -125,7 +125,7 @@ class manifest(revlog.revlog): 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