From patchwork Wed May 29 11:35:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Babchuk X-Patchwork-Id: 10966865 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1E64B933 for ; Wed, 29 May 2019 11:37:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D32B206AF for ; Wed, 29 May 2019 11:37:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 00BF6287A6; Wed, 29 May 2019 11:37:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3F84F206AF for ; Wed, 29 May 2019 11:37:49 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hVws2-0001iY-JR; Wed, 29 May 2019 11:35:50 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hVws1-0001iT-8x for xen-devel@lists.xenproject.org; Wed, 29 May 2019 11:35:49 +0000 X-Inumbo-ID: e68d6435-8205-11e9-8980-bc764e045a96 Received: from EUR03-DB5-obe.outbound.protection.outlook.com (unknown [40.107.4.88]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id e68d6435-8205-11e9-8980-bc764e045a96; Wed, 29 May 2019 11:35:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=epam.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qhLQQ1/Cfbm/+mJHGlIMsBVk/z5NnvwKOEqWMvlZhx8=; b=XfFYeR04Lq4POTx4I0quuh/VGwkWvlLBdkI+lIszjH6uAzaZP/zSbyrPNt5qiW6+mnf5t4v5eJwg7WuSz0L37a3+NJqomV/MX+m5woBM4FsPYgyxqggXMiS0THCRWIJ3MYeiPHZaYa22dJhTSacmOOPSlbSBoeH6JDXi2IaHuU3dgmMkOc67BPg1R0J84wHTQQzC2yg0wgLLPIee9eYtwAT1D408NHhyqDCPJHHKHEhcgixnFVnkha3huf2hlN+eUHPntN5MvB3dREvNMW/+lOC6J+80tJ3rft58ceuSrRNh9n7V3dMkWcjnindF2rmgkcA1bn/EurIP5WBsItd0BA== Received: from AM0PR03MB4148.eurprd03.prod.outlook.com (20.176.214.210) by AM0PR03MB4529.eurprd03.prod.outlook.com (20.176.214.211) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1922.20; Wed, 29 May 2019 11:35:43 +0000 Received: from AM0PR03MB4148.eurprd03.prod.outlook.com ([fe80::55c5:599a:1f80:208a]) by AM0PR03MB4148.eurprd03.prod.outlook.com ([fe80::55c5:599a:1f80:208a%3]) with mapi id 15.20.1922.021; Wed, 29 May 2019 11:35:43 +0000 From: Volodymyr Babchuk To: "xen-devel@lists.xenproject.org" Thread-Topic: [PATCH] get_maintainer: Improve patch recognition Thread-Index: AQHVFhKmR9oYQeQHRUKX8vkFAoSAyA== Date: Wed, 29 May 2019 11:35:43 +0000 Message-ID: <20190529113534.23213-1-volodymyr_babchuk@epam.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Volodymyr_Babchuk@epam.com; x-originating-ip: [85.223.209.22] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 125c3373-f180-48bd-c39a-08d6e429c904 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:AM0PR03MB4529; x-ms-traffictypediagnostic: AM0PR03MB4529: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:227; x-forefront-prvs: 0052308DC6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(396003)(39860400002)(136003)(376002)(346002)(199004)(189003)(14444005)(256004)(36756003)(2501003)(66446008)(64756008)(53936002)(486006)(107886003)(80792005)(2351001)(2906002)(68736007)(66066001)(76116006)(66946007)(14454004)(86362001)(6916009)(66556008)(8676002)(81156014)(81166006)(91956017)(66476007)(1076003)(5660300002)(73956011)(72206003)(7736002)(71200400001)(71190400001)(305945005)(6436002)(102836004)(316002)(7416002)(4326008)(8936002)(478600001)(54906003)(25786009)(476003)(2616005)(3846002)(55236004)(186003)(6116002)(6512007)(99286004)(6486002)(5640700003)(6506007)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR03MB4529; H:AM0PR03MB4148.eurprd03.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: epam.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: uRp891PnN6PCQbJxxCl3FWjHZnMrW+zMNgUGEKRqtRYZxYF81CbYUxY8tQe0hDxnvSPryUU1H3psWtSvDkQjDzpPqtsJ4UdE4fj7xKCRo9c2ZS3ggHuIT3IJnlXv0bUJT7evkJxHL8UpoX2516ErAAkfmEv46WBdua3laoQCD9Ei/puICfO82Qzs3ECqXTOpZdV6fDopKtIf1sHYezfUIisb0XYaRrG9lB7YzEFObYC4cmW/v7VPSyac8aJokWPR6mY7C418wjNlyW52oOth+Lbipo4wBo73zRxV6mSny7AjZFmICUnqhtGdrsVZZkJvlwgpETlYGTGTvNaf8ojpO9cxfvX0MnaORzLMapYc4k5KWh48X1kUDdWJhT2q0CB9dE7swaGUVz93sXnFToEwB+t2/h8I2JORv+jY0ZBedNg= MIME-Version: 1.0 X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-Network-Message-Id: 125c3373-f180-48bd-c39a-08d6e429c904 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 May 2019 11:35:43.5655 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b41b72d0-4e9f-4c26-8a69-f949f367c91d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Volodymyr_Babchuk@epam.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR03MB4529 Subject: [Xen-devel] [PATCH] get_maintainer: Improve patch recognition X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , Wei Liu , Konrad Rzeszutek Wilk , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Julien Grall , Jan Beulich , Heinrich Schuchardt , Joe Perches , Volodymyr Babchuk Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Joe Perches From: Joe Perches There are mode change and rename only patches that are unrecognized by the get_maintainer.pl script. Recognize them. Reported-by: Heinrich Schuchardt CC: Julien Grall Signed-off-by: Joe Perches Signed-off-by: Volodymyr Babchuk --- scripts/get_maintainer.pl | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index d528da738c..174dfb7e40 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl @@ -445,7 +445,18 @@ foreach my $file (@ARGV) { while (<$patch>) { my $patch_line = $_; - if (m/^\+\+\+\s+(\S+)/ or m/^---\s+(\S+)/) { + if (m/^ mode change [0-7]+ => [0-7]+ (\S+)\s*$/) { + my $filename = $1; + push(@files, $filename); + } elsif (m/^rename (?:from|to) (\S+)\s*$/) { + my $filename = $1; + push(@files, $filename); + } elsif (m/^diff --git a\/(\S+) b\/(\S+)\s*$/) { + my $filename1 = $1; + my $filename2 = $2; + push(@files, $filename1); + push(@files, $filename2); + } elsif (m/^\+\+\+\s+(\S+)/ or m/^---\s+(\S+)/) { my $filename = $1; if ($1 ne "/dev/null") { #Ignore the no-file placeholder $filename =~ s@^[^/]*/@@;