diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-07-30 11:55:20 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-07-30 14:40:40 +0200 |
commit | bb8d63d90f65d5b0da496241133b5736b32161b1 (patch) | |
tree | 4269ff9d6e5f03c8e602e61188e92622475d6e3f | |
parent | aae9b921686054070c6897fd64cb80af90cf92d2 (diff) |
Don't return commits in a different order than git-log
Git-Dch: Ignore
-rw-r--r-- | gbp/git.py | 2 | ||||
-rwxr-xr-x | git-dch | 5 |
2 files changed, 5 insertions, 2 deletions
@@ -294,7 +294,7 @@ class GitRepository(object): where = " on %s" % paths if paths else "" raise GitRepositoryError, ("Error getting commits %s..%s%s" % (since, until, where)) - return [ commit.strip() for commit in commits[::-1] ] + return [ commit.strip() for commit in commits ] def show(self, id): """git-show id""" @@ -413,7 +413,10 @@ def main(argv): if args: gbp.log.info("Only looking for changes on '%s'" % " ".join(args)) - commits = repo.commits(since=since, until=until, paths=" ".join(args), options=options.git_log.split(" ")) + commits = repo.commits(since=since, until=until, + paths=" ".join(args), + options=options.git_log.split(" ")) + commits.reverse() # add a new changelog section if: if options.new_version or options.bpo or options.nmu or options.qa: |