Fill up entries in reverse order.
authorMartin Liska <mliska@suse.cz>
Tue, 19 May 2020 10:01:41 +0000 (12:01 +0200)
committerMartin Liska <mliska@suse.cz>
Tue, 19 May 2020 10:01:41 +0000 (12:01 +0200)
contrib/ChangeLog:

* gcc-changelog/git_update_version.py:
Fill up entries in reverse order.

contrib/gcc-changelog/git_update_version.py

index c66b4d68e6896ac28ecb9890eada6826922cb6c7..2de44f275801b1eefff7f709c104a66b81d3719d 100755 (executable)
@@ -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: