hg2git.py: Allow for spaces in authorfile

By allowing spaces in keys we allow for (re-)mapping complete lines
like "Joe User <joe@host>" to be mapped to something else.

Signed-off-by: Rocco Rutte <pdmef@gmx.net>
This commit is contained in:
Rocco Rutte
2007-03-12 10:26:46 +00:00
parent 75dc075d52
commit 59a481a2b0

View File

@@ -270,7 +270,7 @@ def load_authors(filename):
return cache
f=open(filename,'r')
l=0
lre=re.compile('^([^= ]+)[ ]*=[ ]*(.+)$')
lre=re.compile('^([^=]+)[ ]*=[ ]*(.+)$')
for line in f.readlines():
l+=1
m=lre.match(line)