From: Martin Liska Date: Tue, 19 May 2020 10:01:41 +0000 (+0200) Subject: Fill up entries in reverse order. X-Git-Tag: misc/first-auto-changelog~131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2114f78a95fea4f334c4fd43b703dfe3b671ac42;p=thirdparty%2Fgcc.git Fill up entries in reverse order. contrib/ChangeLog: * gcc-changelog/git_update_version.py: Fill up entries in reverse order. --- diff --git a/contrib/gcc-changelog/git_update_version.py b/contrib/gcc-changelog/git_update_version.py index c66b4d68e689..2de44f275801 100755 --- a/contrib/gcc-changelog/git_update_version.py +++ b/contrib/gcc-changelog/git_update_version.py @@ -93,7 +93,7 @@ for ref in origin.refs: # TODO: set strict=True after testing period commits = parse_git_revisions(args.git_path, '%s..HEAD' % commit.hexsha, strict=False) - for git_commit in commits: + for git_commit in reversed(commits): prepend_to_changelog_files(repo, args.git_path, git_commit) # update timestamp with open(datestamp_path, 'w+') as f: