From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2F164A052E for ; Mon, 3 Feb 2020 16:44:49 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F0D1C1BFAE; Mon, 3 Feb 2020 16:44:48 +0100 (CET) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by dpdk.org (Postfix) with ESMTP id 1B8711BFAE for ; Mon, 3 Feb 2020 16:44:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1580744687; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=omPImauvxg72frBLeQhyxIsgwuLj1qWZFbzP1MgRVq4=; b=E0D2cyDe4LMVx3uiAmdTJjQZUF1FZIzNP7Vrqoz077C/4BbgMLLBFq+n0CpsHhekQsfSW9 h40/KkQmHR7TiH3/dltl/7IVzWhZHW4x2reWZDhIWzcd59ibJ+g/VfkYy1cXWJHWexAwTv kGuFi3YSrwMTu3+/GeOfN+aziKKR77o= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-184-K6BNMIIAMWutRVK97zTC1A-1; Mon, 03 Feb 2020 10:44:44 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9BF64189CD02; Mon, 3 Feb 2020 15:44:43 +0000 (UTC) Received: from rh.redhat.com (unknown [10.33.36.79]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1F62B60BE2; Mon, 3 Feb 2020 15:44:41 +0000 (UTC) From: Kevin Traynor To: dev@dpdk.org, thomas@monjalon.net Cc: stable@dpdk.org, bluca@debian.org, Kevin Traynor Date: Mon, 3 Feb 2020 15:44:26 +0000 Message-Id: <20200203154426.3488-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: K6BNMIIAMWutRVK97zTC1A-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Subject: [dpdk-stable] [PATCH] devtools: add fixes column to git-log-fixes X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" During backporting, if the fixes or stable tag are missing, it usually requires some investigation by stable maintainer as to why. The fixes tag of the originating release, if present, is contained at the end of the line. Otherwise there is an (N/A). When there are a large amount of commits, adding an aligned column indicating the presence of a fixes tag beside the stable one makes it easier to quickly see the patches requiring further investigation. e.g. 20.02 8f33cbcfa S F net/i40e/base: fix buffer address (16.04) 20.02 4b3da9415 S F net/i40e/base: fix error message (1.7.0) 20.02 1da546c39 - F net/i40e/base: fix missing link modes (17.08) 20.02 79bfe7808 S F net/i40e/base: fix Tx descriptors number (1.7.0) 20.02 50126939c - F net/i40e/base: fix retrying logic (18.02) 20.02 dcd05da0a S F app/testpmd: fix GENEVE flow item (18.02) 20.02 b0b9fdad2 S - net/bnx2x: support secondary process (N/A) 20.02 f8279f47d S F net/netvsc: fix crash in secondary process (18.08) Signed-off-by: Kevin Traynor --- Not sure if anyone else is relying on this script and changing the output will break something for them? If it is not ok to make this change now, I will add a note and re-submit for 20.05. --- devtools/git-log-fixes.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/devtools/git-log-fixes.sh b/devtools/git-log-fixes.sh index e37ee2260..6d468d673 100755 --- a/devtools/git-log-fixes.sh +++ b/devtools/git-log-fixes.sh @@ -95,9 +95,21 @@ stable_tag () # } =20 +# print a marker for fixes tag presence +fixes_tag () # +{ + if git log --format=3D'%b' -1 $1 | grep -qi '^Fixes: *' ; then + echo 'F' + else + echo '-' + fi +} + git log --oneline --reverse $range | while read id headline ; do =09origins=3D$(origin_filter $id) =09stable=3D$(stable_tag $id) -=09[ "$stable" =3D "S" ] || [ -n "$origins" ] || echo "$headline" | grep -= q fix || continue +=09fixes=3D$(fixes_tag $id) +=09[ "$stable" =3D "S" ] || [ "$fixes" =3D "F" ] || [ -n "$origins" ] || \ +=09=09echo "$headline" | grep -q fix || continue =09version=3D$(commit_version $id) =09if [ -n "$origins" ] ; then @@ -109,4 +121,4 @@ while read id headline ; do =09=09origver=3D'N/A' =09fi -=09printf '%s %7s %s %s (%s)\n' $version $id $stable "$headline" "$origver= " +=09printf '%s %7s %s %s %s (%s)\n' $version $id $stable $fixes "$headline"= "$origver" done --=20 2.21.1