Mercurial > hgsubversion
diff hgsubversion/maps.py @ 358:2c0649064455
Author maps: handle lines without = gracefully.
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Thu, 28 May 2009 09:41:00 +0200 |
parents | 46e69be8e2c8 |
children | e74321f6f8a1 |
line wrap: on
line diff
--- a/hgsubversion/maps.py +++ b/hgsubversion/maps.py @@ -47,7 +47,7 @@ class AuthorMap(dict): % (srcauth, self[srcauth], dstauth)) else: self[srcauth] = dstauth - except IndexError: + except (IndexError, ValueError): self.ui.warn('Ignoring line %i in author map %s: %s\n' % (number, path, line.rstrip())) f.close()