Support the case where the author field has an empty email address, i.e. it is of...
authorBarry Wardell <barry.wardell@gmail.com>
Wed, 23 Nov 2011 22:12:52 +0000 (23 22:12 +0000)
committerFrej Drejhammar <frej.drejhammar@gmail.com>
Sat, 26 Nov 2011 14:07:43 +0000 (26 15:07 +0100)
hg2git.py

index 72967d2..ecaac17 100755 (executable)
--- a/hg2git.py
+++ b/hg2git.py
@@ -13,7 +13,7 @@ cfg_master='master'
 # default origin name
 origin_name=''
 # silly regex to see if user field has email address
-user_re=re.compile('([^<]+) (<[^>]+>)$')
+user_re=re.compile('([^<]+) (<[^>]*>)$')
 # silly regex to clean out user names
 user_clean_re=re.compile('^["]([^"]+)["]$')