mirror of
https://github.com/frej/fast-export.git
synced 2025-11-03 09:45:48 +01:00
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:
@@ -270,7 +270,7 @@ def load_authors(filename):
|
|||||||
return cache
|
return cache
|
||||||
f=open(filename,'r')
|
f=open(filename,'r')
|
||||||
l=0
|
l=0
|
||||||
lre=re.compile('^([^= ]+)[ ]*=[ ]*(.+)$')
|
lre=re.compile('^([^=]+)[ ]*=[ ]*(.+)$')
|
||||||
for line in f.readlines():
|
for line in f.readlines():
|
||||||
l+=1
|
l+=1
|
||||||
m=lre.match(line)
|
m=lre.match(line)
|
||||||
|
|||||||
Reference in New Issue
Block a user