From nobody Mon Feb 9 19:29:54 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zoho.com; dkim=fail spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1493804741802707.4852527688987; Wed, 3 May 2017 02:45:41 -0700 (PDT) Received: from localhost ([::1]:35551 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5qqo-0004wG-Up for importer@patchew.org; Wed, 03 May 2017 05:45:39 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5qpF-00043r-RN for qemu-devel@nongnu.org; Wed, 03 May 2017 05:44:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d5qpB-0006lb-3z for qemu-devel@nongnu.org; Wed, 03 May 2017 05:44:01 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:33053) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d5qpA-0006ku-SJ for qemu-devel@nongnu.org; Wed, 03 May 2017 05:43:57 -0400 Received: by mail-wm0-x243.google.com with SMTP id y10so11381529wmh.0 for ; Wed, 03 May 2017 02:43:56 -0700 (PDT) Received: from donizetti.redhat.com (94-39-148-124.adsl-ull.clienti.tiscali.it. [94.39.148.124]) by smtp.gmail.com with ESMTPSA id o20sm18336880wro.61.2017.05.03.02.43.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 03 May 2017 02:43:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=+b2IIAzroFG39UtOgaUyoFmOzgDLwYqPP20/SD1tWJ8=; b=EYQjrkLMFVlTUJxUr+3Pdx4AnO49Mj0wiZpHrjTs10ZXNenhm6K1XczCH2swat/Q90 FlaPwR/yIMWHa/t/Jbxv4MdItin8t6tRcJ55Wc5p/01vMcVvMdQ5kYGWMQTWDsLRQh4Y UKSKyFRA8AzOoqMBCTz9j8R3VP1VjEl4yCvCpkkR0tJGzsfYW/cF5dp3+meziCOswzKv ZSlsLE1CY/zChBBx4OYVvf68vS2MeWEvWhhbZXlgtltIeJw0dqLux2eLyyU1nZGBIq91 K36OcadGr/FhpkVsgYyD2rf0aF6OftTW/jLvvyNmzkihqAVOL4pVSoV1d3Fdi2Tek14v 1siQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=+b2IIAzroFG39UtOgaUyoFmOzgDLwYqPP20/SD1tWJ8=; b=XPWupEMBZhjhzX9aPQ5yizePM/xMuq+Eax6t27UW5vEkacLe/2zu9pItpxPae+cXsQ QcAzH0TJeI4c03SpxUQz7R4HdqLyNAfReKkWxsiARjNSW6LpNH65nv/sZ6iLLWXG3d+g T0kbqAup0h5GKdPYkT9XLhpG/oNhV/cOk4l2/1YQwuiBH2qQeRynfElebun7SA8FmniW dKK6zW10+a9cCVtpcWcbJTHCI+2tg5bFpv7zbCIcfIb1/NaNMAZ/aCu9rdSK/nubraNl 1YSXGK0eiwS576DPfYKKcKuulnZQBWNQcvHIZZleatAUMujj3Xi2bAUf26vB4e9YVphh 0J7w== X-Gm-Message-State: AN3rC/48PVx1ETeW0GgEvNFrMgrqN2h+BHSD9OSWCcx8xg1LDSByvvSc BjJ8blWq41b7Zw== X-Received: by 10.28.212.148 with SMTP id l142mr609041wmg.110.1493804635842; Wed, 03 May 2017 02:43:55 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Wed, 3 May 2017 11:43:48 +0200 Message-Id: <20170503094351.5040-3-pbonzini@redhat.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170503094351.5040-1-pbonzini@redhat.com> References: <20170503094351.5040-1-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::243 Subject: [Qemu-devel] [PATCH 2/5] get_maintainer: Teach get_maintainer.pl about the new "R:" tag X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: thuth@redhat.com, armbru@redhat.com, pavel.dovgaluk@ispras.ru Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Joe Perches We can now designate reviewers in the MAINTAINERS file with the new "R:" tag, so this commit teaches get_maintainers.pl to add their email addresses. Cherry picked from Linux commit c1c3f2c906e35bcb6e4cdf5b8e077660fead14fe, with fixes to avoid \C as in QEMU commit ba10f729f1 ("get_maintainer.pl: \C is deprecated", 2015-09-25). Signed-off-by: Joe Perches Signed-off-by: Paolo Bonzini --- scripts/get_maintainer.pl | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index 8261bcb1ad..2bde32f64b 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl @@ -21,6 +21,7 @@ my $lk_path =3D "./"; my $email =3D 1; my $email_usename =3D 1; my $email_maintainer =3D 1; +my $email_reviewer =3D 1; my $email_list =3D 1; my $email_subscriber_list =3D 0; my $email_git =3D 0; @@ -180,6 +181,7 @@ if (!GetOptions( 'remove-duplicates!' =3D> \$email_remove_duplicates, 'mailmap!' =3D> \$email_use_mailmap, 'm!' =3D> \$email_maintainer, + 'r!' =3D> \$email_reviewer, 'n!' =3D> \$email_usename, 'l!' =3D> \$email_list, 's!' =3D> \$email_subscriber_list, @@ -238,7 +240,8 @@ if ($sections) { } =20 if ($email && - ($email_maintainer + $email_list + $email_subscriber_list + + ($email_maintainer + $email_reviewer + + $email_list + $email_subscriber_list + $email_git + $email_git_blame) =3D=3D 0) { die "$P: Please select at least 1 email option\n"; } @@ -718,6 +721,7 @@ MAINTAINER field selection options: --hg-since =3D> hg history to use (default: $email_hg_since) --interactive =3D> display a menu (mostly useful if used with the --gi= t option) --m =3D> include maintainer(s) if any + --r =3D> include reviewer(s) if any --n =3D> include name 'Full Name ' --l =3D> include list(s) if any --s =3D> include subscriber only list(s) if any @@ -1022,6 +1026,22 @@ sub add_categories { my $role =3D get_maintainer_role($i); push_email_addresses($pvalue, $role); } + } elsif ($ptype eq "R") { + my ($name, $address) =3D parse_email($pvalue); + if ($name eq "") { + if ($i > 0) { + my $tv =3D $typevalue[$i - 1]; + if ($tv =3D~ m/^(.):\s*(.*)/) { + if ($1 eq "P") { + $name =3D $2; + $pvalue =3D format_email($name, $address, $email_usename); + } + } + } + } + if ($email_reviewer) { + push_email_addresses($pvalue, 'reviewer'); + } } elsif ($ptype eq "T") { push(@scm, $pvalue); } elsif ($ptype eq "W") { --=20 2.12.2