From: <daniel.turull@ericsson.com>
To: <openembedded-core@lists.openembedded.org>
Cc: Daniel Turull <daniel.turull@ericsson.com>
Subject: [PATCH v2 0/3] devtool: upgrade: improve changelog extraction for git-log-style ChangeLogs
Date: Tue, 4 Aug 2026 08:02:02 +0200 [thread overview]
Message-ID: <20260804060205.179715-1-daniel.turull@ericsson.com> (raw)
From: Daniel Turull <daniel.turull@ericsson.com>
devtool upgrade's changelog extraction misattributed unrelated commits
when upgrading recipes like nghttp2, whose ChangeLog is the literal output
of `git log`, regenerated wholesale on every release.
Changes from v1:
- Header-skipping in the structural diff now relies on the blank line
git log always inserts before the commit message, instead of
enumerating header prefixes with a regex.
- The UTF-8 decode fix is split into its own patch and applied to both
git-show call sites instead of just one.
- A single-use helper that only sequenced two operations with no reuse
benefit has been inlined into its caller.
- The git-diff fallback is now guarded against UnicodeDecodeError too,
so a bad byte in the diff hunk itself doesn't crash extraction.
Daniel Turull (3):
devtool: upgrade: ignore changelogs from 3rd party
devtool: upgrade: read changelog blobs via a temp file
devtool: upgrade: diff git-log-style changelogs by commit hash
scripts/lib/devtool/upgrade.py | 90 +++++++++++++++++++++++++++++-----
1 file changed, 79 insertions(+), 11 deletions(-)
next reply other threads:[~2026-08-04 6:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-04 6:02 daniel.turull [this message]
2026-08-04 6:02 ` [PATCH v2 1/3] devtool: upgrade: ignore changelogs from 3rd party daniel.turull
2026-08-04 6:02 ` [PATCH v2 2/3] devtool: upgrade: read changelog blobs via a temp file daniel.turull
2026-08-04 6:02 ` [PATCH v2 3/3] devtool: upgrade: diff git-log-style changelogs by commit hash daniel.turull
[not found] ` <18C884DEFF3686EE.1990914@lists.openembedded.org>
2026-08-04 6:06 ` [OE-core] [PATCH v2 2/3] devtool: upgrade: read changelog blobs via a temp file Daniel Turull
2026-08-06 14:05 ` Ross Burton
2026-08-06 14:09 ` Daniel Turull
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260804060205.179715-1-daniel.turull@ericsson.com \
--to=daniel.turull@ericsson.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox