From 59a481a2b0b4e73db903fe7773aa122fa74fd9d4 Mon Sep 17 00:00:00 2001 From: Rocco Rutte Date: Mon, 12 Mar 2007 10:26:46 +0000 Subject: [PATCH] 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 --- hg2git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.11.0