diff mbox series

devtool: recognize perldelta.pod as a changelog file

Message ID 20260722073137.1681672-1-daniel.turull@ericsson.com
State Under Review
Headers show
Series devtool: recognize perldelta.pod as a changelog file | expand

Commit Message

Daniel Turull July 22, 2026, 7:31 a.m. UTC
From: Daniel Turull <daniel.turull@ericsson.com>

perl's changelog extraction was picking up dist/Attribute-Handlers/Changes
instead of perl's own release notes. perl bundles dozens of dual-life CPAN
modules under dist/*/{Changes,ChangeLog}, and since perl's own top-level
Changes file is not updated per-release, none of the known
_CHANGELOG_BASENAMES matched the intended file. The extraction fell back to
picking the largest diff among the bundled subcomponent changelogs, which
is unrelated to the perl core changes being upgraded.

perl's actual per-version release notes live in pod/perldelta.pod, which
is large enough to still win the "largest diff" comparison once
recognized. Add it to _CHANGELOG_BASENAMES so it is considered like any
other known changelog filename.

Signed-off-by: Daniel Turull <daniel.turull@ericsson.com>
---
 scripts/lib/devtool/upgrade.py | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py
index 74adb29402..13d51bf952 100644
--- a/scripts/lib/devtool/upgrade.py
+++ b/scripts/lib/devtool/upgrade.py
@@ -43,6 +43,7 @@  logger = logging.getLogger('devtool')
 # history.rst - python3-idna, python3-docutils
 # releases.md - rust, cargo (includes CVEs)
 # whatsnew.txt - libsdl2
+# perldelta.pod - perl
 _CHANGELOG_BASENAMES = {
     'changelog', 'changelog.md', 'changelog.rst', 'changelog.txt',
     'changes', 'changes.md', 'changes.rst', 'changes.txt',
@@ -51,6 +52,7 @@  _CHANGELOG_BASENAMES = {
     'releasenotes.md', 'releasenotes.rst',
     'releases.md',
     'whatsnew.txt',
+    'perldelta.pod',
 }
 
 def _run(cmd, cwd=''):