[OBVIOUS] Fill up entries in reverse order.

Message ID b3db82e4-80d5-7530-36ce-9c37d03156ad@suse.cz
State New
Headers show
Series
  • [OBVIOUS] Fill up entries in reverse order.
Related show

Commit Message

Martin Liška May 19, 2020, 10:03 a.m.
Hi.

Older entries should be added first.

Installed.

contrib/ChangeLog:

	* gcc-changelog/git_update_version.py:
	Fill up entries in reverse order.
---
  contrib/gcc-changelog/git_update_version.py | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/contrib/gcc-changelog/git_update_version.py b/contrib/gcc-changelog/git_update_version.py
index c66b4d68e68..2de44f27580 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: