All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] devtool: upgrade: improve changelog extraction for git-log-style ChangeLogs
@ 2026-08-07  7:03 daniel.turull
  2026-08-07  7:03 ` [PATCH v3 1/2] devtool: upgrade: call subprocess.run() instead of bb.process.run() daniel.turull
  2026-08-07  7:03 ` [PATCH v3 2/2] devtool: upgrade: diff git-log-style changelogs by commit hash daniel.turull
  0 siblings, 2 replies; 3+ messages in thread
From: daniel.turull @ 2026-08-07  7:03 UTC (permalink / raw)
  To: openembedded-core; +Cc: Ross.Burton, Daniel Turull

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.

Changes from v2:
- drop already merged patch.
- as suggested in the review use subprocess.run() and drop helper function

Daniel Turull (2):
  devtool: upgrade: call subprocess.run() instead of bb.process.run()
  devtool: upgrade: diff git-log-style changelogs by commit hash

 scripts/lib/devtool/upgrade.py | 68 +++++++++++++++++++++++++++++-----
 1 file changed, 58 insertions(+), 10 deletions(-)



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-08-07  7:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-07  7:03 [PATCH v3 0/2] devtool: upgrade: improve changelog extraction for git-log-style ChangeLogs daniel.turull
2026-08-07  7:03 ` [PATCH v3 1/2] devtool: upgrade: call subprocess.run() instead of bb.process.run() daniel.turull
2026-08-07  7:03 ` [PATCH v3 2/2] devtool: upgrade: diff git-log-style changelogs by commit hash daniel.turull

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.