From: Rocco Rutte Date: Mon, 12 Mar 2007 10:26:46 +0000 (+0000) Subject: hg2git.py: Allow for spaces in authorfile X-Git-Url: http://crossforests.com/gitweb?a=commitdiff_plain;h=59a481a2b0b4e73db903fe7773aa122fa74fd9d4;p=python%2Ffast-export.git hg2git.py: Allow for spaces in authorfile By allowing spaces in keys we allow for (re-)mapping complete lines like "Joe User " to be mapped to something else. Signed-off-by: Rocco Rutte --- diff --git a/hg2git.py b/hg2git.py index e5991c1..bcef2e1 100644 --- a/hg2git.py +++ b/hg2git.py @@ -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)