convert: Clean up authormap key=value splitting.
Introduces a subtle parsing difference: dstauthor can now contain '='
characters.
--- 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
@@ -194,8 +194,9 @@
if line.strip() == '':
continue
try:
- srcauthor = line.split('=')[0].strip()
- dstauthor = line.split('=')[1].strip()
+ srcauthor, dstauthor = line.split('=', 1)
+ srcauthor = srcauthor.strip()
+ dstauthor = dstauthor.strip()
if srcauthor in self.authors and dstauthor != self.authors[srcauthor]:
self.ui.status(
'Overriding mapping for author %s, was %s, will be %s\n'