From patchwork Mon Jan 17 10:40:43 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dirk Wallenstein X-Patchwork-Id: 79138 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bilbo.ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 73565B70CD for ; Mon, 17 Jan 2011 21:42:21 +1100 (EST) Received: from mailout09.t-online.de (mailout09.t-online.de [194.25.134.84]) by ozlabs.org (Postfix) with ESMTP id 252D0B6EED for ; Mon, 17 Jan 2011 21:42:19 +1100 (EST) Received: from fwd08.aul.t-online.de (fwd08.aul.t-online.de ) by mailout09.t-online.de with smtp id 1PemXP-0006NK-T7; Mon, 17 Jan 2011 11:42:15 +0100 Received: from localhost.localdomain (rXRCgyZAwhbewOghHs0ViLezo43svhowZK6g8hk7+kD2pHuUBZqWzdr4KCu6ffgZvk@[84.139.42.252]) by fwd08.t-online.de with esmtp id 1PemVx-0CqLdQ0; Mon, 17 Jan 2011 11:40:45 +0100 From: Dirk Wallenstein To: patchwork@lists.ozlabs.org Subject: [PATCH] Account for mail client line wrapping in pull requests Date: Mon, 17 Jan 2011 11:40:43 +0100 Message-Id: <1295260843-19477-1-git-send-email-halsmit@t-online.de> X-Mailer: git-send-email 1.7.3.2 X-ID: rXRCgyZAwhbewOghHs0ViLezo43svhowZK6g8hk7+kD2pHuUBZqWzdr4KCu6ffgZvk X-TOI-MSGID: a8249ebf-f7fe-4065-beed-644300ac02f9 X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org If a mail client wraps the line with the sha, there won't necessarily be a space after 'commit'. Signed-off-by: Dirk Wallenstein --- An example is here: http://lists.freedesktop.org/archives/xorg-devel/2010-November/014836.html apps/patchwork/bin/parsemail.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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)