From: Ed Bartosh Date: Mon, 11 Jun 2012 10:47:00 +0000 (+0300) Subject: Sorted changelog entries in chronological order. fixes #55 X-Git-Tag: 0.7~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cc6d892d2043420da376b02c53858004d452ed5e;p=tools%2Fgbs.git Sorted changelog entries in chronological order. fixes #55 Change-Id: I7ab1b7cc9564ad8ee09d94dc6d5bb6bcdd6ab87c --- diff --git a/gitbuildsys/cmd_changelog.py b/gitbuildsys/cmd_changelog.py index 9f15535..b0b9401 100644 --- a/gitbuildsys/cmd_changelog.py +++ b/gitbuildsys/cmd_changelog.py @@ -134,7 +134,9 @@ def do(opts, _args): msger.error("Can't find last commit ID in the log, "\ "please specify it by '--since'") - commits = repo.get_commits(commitid_since, 'HEAD') + commits = [info.split()[1] for info in sorted(repo.get_commits(\ + commitid_since, 'HEAD', options=['--pretty=format:%at %H']), + reverse=True)] if not commits: msger.error("Nothing found between %s and HEAD" % commitid_since)