Modify changelog order to follow default order of git log. #508
authorHuang Hao <hao.h.huang@intel.com>
Tue, 20 Nov 2012 08:47:30 +0000 (16:47 +0800)
committerHuang Hao <hao.h.huang@intel.com>
Tue, 20 Nov 2012 08:47:30 +0000 (16:47 +0800)
Change-Id: Id5575f47a8dad741bbca1956b279eb9857dfa0fc

gitbuildsys/cmd_changelog.py

index 8f0ee4e42e26bc22ae7f0d73af9485f048b7a8b8..fafc33faec06b946c1b15b7ee8d39de976eecfed 100644 (file)
@@ -123,9 +123,7 @@ def main(args):
                 msger.error("Can't find last commit ID in the log, "\
                             "please specify it by '--since'")
 
-    commits = [info.split()[1] for info in sorted(repo.get_commits(\
-                  commitid_since, 'HEAD', options=['--pretty=format:%at %H']),
-                  reverse=True)]
+    commits = repo.get_commits(commitid_since, 'HEAD')
     if not commits:
         msger.error("Nothing found between %s and HEAD" % commitid_since)