# HG changeset patch # User Marti Raudsepp # Date 2008-02-28 15:37:56 # Node ID 9d13e712942318ef414086015709805f826e3d2e # Parent 0750e4ba9d3d75605cfadec1e5ec47db9d554532 convert: Ignore empty lines in authormap file. diff --git a/hgext/convert/convcmd.py b/hgext/convert/convcmd.py --- a/hgext/convert/convcmd.py +++ b/hgext/convert/convcmd.py @@ -191,6 +191,8 @@ class converter(object): 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()