From: Dirk Wallenstein Date: Mon, 17 Jan 2011 00:40:43 +0000 (+0000) Subject: parser: Account for mail client line wrapping in pull requests X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=d9ab2f6b49b035a724fbeaea4c38f19d4ecc5996;p=patchwork parser: Account for mail client line wrapping in pull requests If a mail client wraps the line with the sha, there won't necessarily be a space after 'commit'. Signed-off-by: Dirk Wallenstein Signed-off-by: Jeremy Kerr --- diff --git a/apps/patchwork/bin/parsemail.py b/apps/patchwork/bin/parsemail.py index 0a9daf5..1b73169 100755 --- a/apps/patchwork/bin/parsemail.py +++ b/apps/patchwork/bin/parsemail.py @@ -136,7 +136,7 @@ def mail_headers(mail): for (k, v) in mail.items()]) def find_pull_request(content): - git_re = re.compile('^The following changes since commit .*' + + git_re = re.compile('^The following changes since commit.*' + '^are available in the git repository at:\n' '^\s*(git://[^\n]+)$', re.DOTALL | re.MULTILINE)