convert: Avoid redundant newline on authormap errors.
authorMarti Raudsepp <marti@juffo.org>
Thu, 28 Feb 2008 17:37:56 +0200
changeset 6185 c48d778d7c23
parent 6184 9d13e7129423
child 6186 aae4eb2f40b0
convert: Avoid redundant newline on authormap errors. The extra rstrip is necessary in case the file has uses different line terminators (i.e. CRLF).
hgext/convert/convcmd.py
--- a/hgext/convert/convcmd.py	Thu Feb 28 17:37:56 2008 +0200
+++ b/hgext/convert/convcmd.py	Thu Feb 28 17:37:56 2008 +0200
@@ -206,8 +206,8 @@
                     self.authors[srcauthor] = dstauthor
             except IndexError:
                 self.ui.warn(
-                    'Ignoring bad line in author file map %s: %s\n'
-                    % (authorfile, line))
+                    'Ignoring bad line in author map file %s: %s\n'
+                    % (authorfile, line.rstrip()))
         afile.close()
 
     def cachecommit(self, rev):