remote-hg: the author email can be null
Like 'Foo <>'. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Jeff King <peff@peff.net>
Felipe Contreras committed
Nov 4, 2012 at 03:13 UTC
12ba4bd4ece3b53c810ac72124ff9ed818cffcd6
1 file changed
+3
-3
contrib/remote-helpers/git-remote-hg
+3
-3
@@ -35,9 +35,9 @@ import urllib
35
#
36
37
NAME_RE = re.compile('^([^<>]+)')
38
-AUTHOR_RE = re.compile('^([^<>]+?)? ?<([^<>]+)>$')
39
-AUTHOR_HG_RE = re.compile('^(.*?) ?<(.+?)(?:>(.+)?)?$')
40
-RAW_AUTHOR_RE = re.compile('^(\w+) (?:(.+)? )?<(.+)> (\d+) ([+-]\d+)')
38
+AUTHOR_RE = re.compile('^([^<>]+?)? ?<([^<>]*)>$')
39
+AUTHOR_HG_RE = re.compile('^(.*?) ?<(.*?)(?:>(.+)?)?$')
40
+RAW_AUTHOR_RE = re.compile('^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)')
41
42
def die(msg, *args):
43
sys.stderr.write('ERROR: %s\n' % (msg % args))