Message ID | 20230418140726.1472209-2-thomas@monjalon.net (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Thomas Monjalon |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A5ADD4297D; Tue, 18 Apr 2023 16:07:59 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9326642D0E; Tue, 18 Apr 2023 16:07:59 +0200 (CEST) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by mails.dpdk.org (Postfix) with ESMTP id 7D65342BD9; Tue, 18 Apr 2023 16:07:58 +0200 (CEST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 236985C0127; Tue, 18 Apr 2023 10:07:58 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 18 Apr 2023 10:07:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1681826878; x= 1681913278; bh=DBjpIhlpEdO6yRSV2wjJMypp/QFJAx7cX7M/Be6rp8k=; b=o j/nHXFncIUptSBioZ6jJH6jTv5cLoVVv4xaZJL5niQNJ9pvgq/BQgLsaO5ehPB3O z9rv/VxtXNJYvbpZTatNaTu8vpYTKTzh2Qzo+fZytuRUITpP4eZncNz575wPUaGY mrzZ0Rh3NSCYaNAwOORWFKohzeSMHh1UiN4Tjbm9SUOItGGJRCsuh9CxINWYzhoY L6AtFJkW96ScxtjHLbCHct/oCK2Bey1K3btPDMuwHtJ6fWhRBX/wvFbppsKsFmnp eA8OvMYs1XM5h4UjYgCavJ9kKbkd6Pj4dBsRBHgd8LQNC+n7hfg3LUSWQycVgHw6 YPs1H9AIlw5Tt2mJjDN9Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1681826878; x= 1681913278; bh=DBjpIhlpEdO6yRSV2wjJMypp/QFJAx7cX7M/Be6rp8k=; b=B ghdOXdKyDc0b4ZCS8xk/xhhdxRIKHNWHrjRGeHUXNy3ZeZ6v67n0ESQpmoxUm3Kt JLGhQCsObbVqBVJPMcRzyk+3p57Wpfe1C1zvrx9nk8xHFpGkoHQuOwcuUTsUSYgJ o9vwnBswqmEOpu4hHa+4mgLUYhgAlPncMybRtHLOrBfyKdI1PN7MGD7T8KR+IWGe USxU6Muv+ntUa7T5CGl3Jl4O0dcF38VqdSC2ePAjHn1HrByny9uk2S+uCqQ06xt7 08GHi55PEjyqa2eo8A51LDUDZAyEzhYOyKmLJeFEpI9PYc0AAqHBfymtSGVI4Vhi atR3bKnQilrWTB0p4Na3A== X-ME-Sender: <xms:PaQ-ZJzprLHZ-R4dPI7BX9Oq2vuk2VNPtVvM-5Jz0xolE0e5IfPYcg> <xme:PaQ-ZJS7R-wnSZMzZOzeTpobuGPwljpln14IcetZXRCM8xrxwLUotDElcx8XQvY9N nv8XHhL2RYSlGkaoQ> X-ME-Received: <xmr:PaQ-ZDUu4khDjCyPxhUjyrdHGVtGTZoxc5y3dsGdgh5mc5y78GzJKAltMf2k_obDNEVAG53he8DUHHRFpShEK_zx4Zl6ViQ> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdelkedgjedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpedvjefhudeghedvtdeijeeigeetuedugfejueekieeltdfhteev keehhfeilefhtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: <xmx:PqQ-ZLi2kBGYATefzG2XhTrr9gAzXGx8djzMQSjTH2oSPmclbZegSQ> <xmx:PqQ-ZLDgqrwEb2OJEecQ1NqHdsnt4--FXQyuyZHPsZO10C9q-u5Y4Q> <xmx:PqQ-ZEJnxh227IC5ThI6pXxbUxyQaP9khLWMzzDmYsDAAfs5WnOwMA> <xmx:PqQ-ZA7hEvEj_bNFmx2ErVt4w0zn3o74RXIlaDQxgX819amqw9pwNA> Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 18 Apr 2023 10:07:57 -0400 (EDT) From: Thomas Monjalon <thomas@monjalon.net> To: dev@dpdk.org Cc: stable@dpdk.org, Yuanhan Liu <yliu@fridaylinux.org> Subject: [PATCH 1/2] devtools: fix check of multiple commits fixed at once Date: Tue, 18 Apr 2023 16:07:25 +0200 Message-Id: <20230418140726.1472209-2-thomas@monjalon.net> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230418140726.1472209-1-thomas@monjalon.net> References: <20230418140726.1472209-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series |
minor changes in script used for backports
|
|
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
Commit Message
Thomas Monjalon
April 18, 2023, 2:07 p.m. UTC
When looking for fixes to backport,
only the first origin commit hash (from "Fixes:") was checked.
There is very little chance that the next commits being fixed
have a wrong hash in the commit log of the fix,
but it is fixed by checking them all before proceeding further.
Fixes: 752d8e097ec1 ("scripts: show fixes with release version of bug")
Cc: stable@dpdk.org
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
devtools/git-log-fixes.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Tue, 18 Apr 2023 at 15:08, Thomas Monjalon <thomas@monjalon.net> wrote: > > When looking for fixes to backport, > only the first origin commit hash (from "Fixes:") was checked. > There is very little chance that the next commits being fixed > have a wrong hash in the commit log of the fix, > but it is fixed by checking them all before proceeding further. > > Fixes: 752d8e097ec1 ("scripts: show fixes with release version of bug") > Cc: stable@dpdk.org > > Signed-off-by: Thomas Monjalon <thomas@monjalon.net> > --- > devtools/git-log-fixes.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Luca Boccassi <bluca@debian.org>
On 18/04/2023 15:07, Thomas Monjalon wrote: > When looking for fixes to backport, > only the first origin commit hash (from "Fixes:") was checked. > There is very little chance that the next commits being fixed > have a wrong hash in the commit log of the fix, > but it is fixed by checking them all before proceeding further. > > Fixes: 752d8e097ec1 ("scripts: show fixes with release version of bug") > Cc: stable@dpdk.org > > Signed-off-by: Thomas Monjalon <thomas@monjalon.net> > --- > devtools/git-log-fixes.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/devtools/git-log-fixes.sh b/devtools/git-log-fixes.sh > index 8a4a8470c2..4690dd4545 100755 > --- a/devtools/git-log-fixes.sh > +++ b/devtools/git-log-fixes.sh > @@ -68,7 +68,7 @@ origin_version () # <origin_hash> ... > { > for origin in $* ; do > # check hash is valid > - git rev-parse -q --verify $1 >&- || continue > + git rev-parse -q --verify $origin >&- || continue > # get version of this bug origin > local origver=$(commit_version $origin) > local roothashes="$(origin_filter $origin)" These still apply and working well. Acked-by: Kevin Traynor <ktraynor@redhat.com>
diff --git a/devtools/git-log-fixes.sh b/devtools/git-log-fixes.sh index 8a4a8470c2..4690dd4545 100755 --- a/devtools/git-log-fixes.sh +++ b/devtools/git-log-fixes.sh @@ -68,7 +68,7 @@ origin_version () # <origin_hash> ... { for origin in $* ; do # check hash is valid - git rev-parse -q --verify $1 >&- || continue + git rev-parse -q --verify $origin >&- || continue # get version of this bug origin local origver=$(commit_version $origin) local roothashes="$(origin_filter $origin)"