From patchwork Thu Sep 24 17:09:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jose Lamego X-Patchwork-Id: 522440 X-Patchwork-Delegate: damien.lespiau@intel.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 68AFE1401F6 for ; Fri, 25 Sep 2015 03:10:12 +1000 (AEST) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 508DE1A02C4 for ; Fri, 25 Sep 2015 03:10:12 +1000 (AEST) X-Original-To: patchwork@lists.ozlabs.org Delivered-To: patchwork@lists.ozlabs.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lists.ozlabs.org (Postfix) with ESMTP id 88DF81A0014 for ; Fri, 25 Sep 2015 03:10:06 +1000 (AEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP; 24 Sep 2015 10:10:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,582,1437462000"; d="scan'208";a="567799482" Received: from jalamego-mobl2.zpn.intel.com ([10.219.5.33]) by FMSMGA003.fm.intel.com with ESMTP; 24 Sep 2015 10:10:01 -0700 From: Jose Lamego To: patchwork@lists.ozlabs.org Subject: [PATCH v3 1/2] parsemail.py: Avoid skipping patches when parsing Date: Thu, 24 Sep 2015 12:09:57 -0500 Message-Id: <1443114597-8130-1-git-send-email-jose.a.lamego@linux.intel.com> X-Mailer: git-send-email 1.9.1 X-BeenThere: patchwork@lists.ozlabs.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Patchwork development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jose Lamego MIME-Version: 1.0 Errors-To: patchwork-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Patchwork" Avoids some email patch notifications to be wrongly skipped when the pull URL includes the branch. An example of an email patch notification that would be skipped can be found in [1]. [1] http://patchwork.openembedded.org/patch/96385/ Signed-off-by: Jose Lamego --- patchwork/bin/parsemail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patchwork/bin/parsemail.py b/patchwork/bin/parsemail.py index e66b557..5378dc6 100755 --- a/patchwork/bin/parsemail.py +++ b/patchwork/bin/parsemail.py @@ -137,7 +137,7 @@ def mail_headers(mail): def find_pull_request(content): git_re = re.compile('^The following changes since commit.*' + '^are available in the git repository at:\n' - '^\s*([\S]+://[^\n]+)$', + '^\s*([\S]+://[^\n]+)', re.DOTALL | re.MULTILINE) match = git_re.search(content) if match: