From patchwork Tue Jun 18 11:12:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Babchuk X-Patchwork-Id: 11001389 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 992A314B6 for ; Tue, 18 Jun 2019 11:14:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 87FCB28A4F for ; Tue, 18 Jun 2019 11:14:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7B5CD28A60; Tue, 18 Jun 2019 11:14:19 +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 C321728A59 for ; Tue, 18 Jun 2019 11:14:18 +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 1hdC2H-00007J-Vd; Tue, 18 Jun 2019 11:12:21 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hdC2G-00007D-SQ for xen-devel@lists.xenproject.org; Tue, 18 Jun 2019 11:12:21 +0000 X-Inumbo-ID: ef79ff85-91b9-11e9-8980-bc764e045a96 Received: from EUR02-AM5-obe.outbound.protection.outlook.com (unknown [2a01:111:f400:fe07::607]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id ef79ff85-91b9-11e9-8980-bc764e045a96; Tue, 18 Jun 2019 11:12:19 +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=UgHSKmfsH8qtKrsLs4JXbr9MhnGdGuZ1By7DkvzHgwE=; b=AGjjR/JXux3OJ5XEYBQsWoffVEwN148OpT95PsfeYeXIBrpDC53U7E/P0inZDmcBAv9Z8IDzDNVUjXbOMvDZXTYx3cZv9HkbWaeb7jmSA1q/nq67dQbey6nWC/fK5wr1bNnEB+LGCo1HXINsCFuL+krrg0wqGPwtu2h4OtG3UfnVgy6FpDdnmqEUGle3Bq2/qFVI0wGFaOngMYxEJu4oF9J1yEURm4zx45ny7DmGWsTW2vbAe+bpU0SG65NHv+g0CBl0dl0JiImvb26CKms+q8K902WDXHgY/wANCbJEt3XP5KhkgYGOhHRK8aLo0Pvrvj5QvBa5JOzaHrtVqiTehQ== Received: from AM0PR03MB4148.eurprd03.prod.outlook.com (20.176.214.210) by AM0PR03MB3681.eurprd03.prod.outlook.com (52.134.82.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.10; Tue, 18 Jun 2019 11:12:15 +0000 Received: from AM0PR03MB4148.eurprd03.prod.outlook.com ([fe80::d09e:ef3:88b6:b1eb]) by AM0PR03MB4148.eurprd03.prod.outlook.com ([fe80::d09e:ef3:88b6:b1eb%7]) with mapi id 15.20.1987.013; Tue, 18 Jun 2019 11:12:15 +0000 From: Volodymyr Babchuk To: "xen-devel@lists.xenproject.org" , Julien Grall Thread-Topic: [PATCH v2] get_maintainer: Improve patch recognition Thread-Index: AQHVJcavyyPUY3If00KRLFTi8Udxfg== Date: Tue, 18 Jun 2019 11:12:15 +0000 Message-ID: <20190618111149.32515-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: 2f98aa47-cb24-4bc9-bebf-08d6f3ddd1f8 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:AM0PR03MB3681; x-ms-traffictypediagnostic: AM0PR03MB3681: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:51; x-forefront-prvs: 007271867D x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(376002)(346002)(396003)(366004)(136003)(199004)(189003)(107886003)(256004)(55236004)(68736007)(66946007)(66066001)(25786009)(102836004)(1076003)(6506007)(14444005)(7416002)(80792005)(8676002)(7736002)(186003)(8936002)(26005)(3846002)(6512007)(81166006)(81156014)(71190400001)(5660300002)(36756003)(64756008)(66556008)(76116006)(6486002)(91956017)(486006)(99286004)(14454004)(73956011)(316002)(71200400001)(2616005)(6436002)(53936002)(110136005)(478600001)(86362001)(66446008)(2501003)(476003)(66476007)(4326008)(6116002)(54906003)(72206003)(305945005)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR03MB3681; 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: pqvc5wrk8TqfdSW2E1hMACzNLP0Wjiqlz4+xn1xWo2ZI3EW9SeJ3qcI7fRupokbGq3biAnE677eXp26vo2iBsIidLn6Pg8SQli63ymcmS5KnOWE5WpP3qIgP98bjDQkhk+QUj5mZMIandt9hqzShtY/U19TGoGpYhNFRBL+HHupuuQMCqZjHlXqQGF2egPIFr7s7I6tZFy/sgHYAdnlcwqlElq44EeZUfM+xhz1E2A+3Y22EBI4fPthxuJDfMvW1SvapkiIvB2ksKrwdhxhIlcqzL+AA6ikIL337TQ7p9ubr4X7Sq14JjV1YBmhn/tv2LJkxLrK0dAQV+6N+cMVRC/wMlJVkoWQmqgwjohOxk1pKPYTYzjijdn75CM2csEDzaRtrSlf1/9YHCxM3s+mnOyp0qGYMGc0bOcMKXAIXoN8= MIME-Version: 1.0 X-OriginatorOrg: epam.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2f98aa47-cb24-4bc9-bebf-08d6f3ddd1f8 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jun 2019 11:12:15.4146 (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: AM0PR03MB3681 Subject: [Xen-devel] [PATCH v2] 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 , 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 There are mode change and rename only patches that are unrecognized by the get_maintainer.pl script. Recognize them. [ Linux commit 0455c74788fd5aad4399f00e3fbbb7e87450ca58 ] Reported-by: Heinrich Schuchardt CC: Julien Grall Signed-off-by: Joe Perches Signed-off-by: Volodymyr Babchuk Acked-by: Julien Grall --- Changes wrt to v1: - Updated commit message - add Linux commit id 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@^[^/]*/@@;