convert: Avoid redundant newline on authormap errors.
The extra rstrip is necessary in case the file has uses different line
terminators (i.e. CRLF).
--- 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):