remote-hg: Postel's law dictates we should handle Author<author@mail>

We should handle a missing space before the email part of an author ident
gracefully. See for example the icedtea6 repository.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin
2012-03-29 13:38:43 -05:00
committed by Pat Thoyts
parent b1b3095810
commit 5b7c03ba7e

View File

@@ -76,7 +76,7 @@ class GitHg(object):
author = ctx.user()
# check for git author pattern compliance
regex = re.compile('^(.*?) \<(.*?)\>(.*)$')
regex = re.compile('^(.*?) ?\<(.*?)\>(.*)$')
a = regex.match(author)
if a: