From: Yves Orton Date: Thu, 13 Jun 2024 21:44:05 +0000 (+0200) Subject: gitlog-to-changelog: Ensure that use of keys() is deterministic. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=d14bb41036e2b48303ed90247f962d992da975af;p=gnulib.git gitlog-to-changelog: Ensure that use of keys() is deterministic. Reported at via Karl Berry. * build-aux/gitlog-to-changelog: Iterate over hash table in a predictable order. Copyright-paperwork-exempt: Yes --- diff --git a/ChangeLog b/ChangeLog index 6939d2a76e..0b7c85c0e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2024-06-13 Yves Orton + + gitlog-to-changelog: Ensure that use of keys() is deterministic. + Reported at + via Karl Berry. + * build-aux/gitlog-to-changelog: Iterate over hash table in a + predictable order. + 2024-06-13 Yves Orton gendocs: Ensure that use of keys() is deterministic. diff --git a/build-aux/gitlog-to-changelog b/build-aux/gitlog-to-changelog index 16a9405a7c..49e7ef95ce 100755 --- a/build-aux/gitlog-to-changelog +++ b/build-aux/gitlog-to-changelog @@ -495,7 +495,7 @@ sub git_dir_option($) # Complain about any unused entry in the --amend=F specified file. my $fail = 0; - foreach my $sha (keys %$amend_code) + foreach my $sha (sort keys %$amend_code) { warn "$ME:$amend_file: unused entry: $sha\n"; $fail = 1;