Mercurial > hg > mercurial-source
changeset 6186:aae4eb2f40b0
convert: Clean up authormap key=value splitting.
Introduces a subtle parsing difference: dstauthor can now contain '='
characters.
author | Marti Raudsepp <marti@juffo.org> |
---|---|
date | Thu, 28 Feb 2008 17:37:56 +0200 (2008-02-28) |
parents | c48d778d7c23 |
children | 531f3e78c6f2 |
files | hgext/convert/convcmd.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/convert/convcmd.py +++ b/hgext/convert/convcmd.py @@ -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'