convert: Ignore empty lines in authormap file.
authorMarti Raudsepp <marti@juffo.org>
Thu, 28 Feb 2008 17:37:56 +0200
changeset 6184 9d13e7129423
parent 6183 0750e4ba9d3d
child 6185 c48d778d7c23
convert: Ignore empty lines in authormap file.
hgext/convert/convcmd.py
--- a/hgext/convert/convcmd.py	Thu Feb 28 22:39:59 2008 +0100
+++ b/hgext/convert/convcmd.py	Thu Feb 28 17:37:56 2008 +0200
@@ -191,6 +191,8 @@
     def readauthormap(self, authorfile):
         afile = open(authorfile, 'r')
         for line in afile:
+            if line.strip() == '':
+                continue
             try:
                 srcauthor = line.split('=')[0].strip()
                 dstauthor = line.split('=')[1].strip()