# HG changeset patch # User Marti Raudsepp # Date 2008-02-28 15:37:56 # Node ID aae4eb2f40b0305e580c82c5fc5049a268a3e4c2 # Parent c48d778d7c23f1fc2851319df5741013d5f960b4 convert: Clean up authormap key=value splitting. Introduces a subtle parsing difference: dstauthor can now contain '=' characters. diff --git a/hgext/convert/convcmd.py b/hgext/convert/convcmd.py --- a/hgext/convert/convcmd.py +++ b/hgext/convert/convcmd.py @@ -194,8 +194,9 @@ class converter(object): 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'