diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2012-11-04 03:13:38 +0100 |
---|---|---|
committer | Jeff King <peff@peff.net> | 2012-11-04 08:35:21 -0500 |
commit | 12ba4bd4ece3b53c810ac72124ff9ed818cffcd6 (patch) | |
tree | d9a259b14703bbe80b2f70e77d7751e98f809c55 /contrib | |
parent | remote-hg: add option to not track branches (diff) | |
download | tgif-12ba4bd4ece3b53c810ac72124ff9ed818cffcd6.tar.xz |
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>
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/remote-helpers/git-remote-hg | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg index a9ae8446fb..7929eec30b 100755 --- a/contrib/remote-helpers/git-remote-hg +++ b/contrib/remote-helpers/git-remote-hg @@ -35,9 +35,9 @@ import urllib # NAME_RE = re.compile('^([^<>]+)') -AUTHOR_RE = re.compile('^([^<>]+?)? ?<([^<>]+)>$') -AUTHOR_HG_RE = re.compile('^(.*?) ?<(.+?)(?:>(.+)?)?$') -RAW_AUTHOR_RE = re.compile('^(\w+) (?:(.+)? )?<(.+)> (\d+) ([+-]\d+)') +AUTHOR_RE = re.compile('^([^<>]+?)? ?<([^<>]*)>$') +AUTHOR_HG_RE = re.compile('^(.*?) ?<(.*?)(?:>(.+)?)?$') +RAW_AUTHOR_RE = re.compile('^(\w+) (?:(.+)? )?<(.*)> (\d+) ([+-]\d+)') def die(msg, *args): sys.stderr.write('ERROR: %s\n' % (msg % args)) |