aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-07-30 11:55:20 +0200
committerGuido Günther <agx@sigxcpu.org>2011-07-30 14:40:40 +0200
commitbb8d63d90f65d5b0da496241133b5736b32161b1 (patch)
tree4269ff9d6e5f03c8e602e61188e92622475d6e3f
parentaae9b921686054070c6897fd64cb80af90cf92d2 (diff)
Don't return commits in a different order than git-log
Git-Dch: Ignore
-rw-r--r--gbp/git.py2
-rwxr-xr-xgit-dch5
2 files changed, 5 insertions, 2 deletions
diff --git a/gbp/git.py b/gbp/git.py
index 1e06d55e..3880b473 100644
--- a/gbp/git.py
+++ b/gbp/git.py
@@ -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"""
diff --git a/git-dch b/git-dch
index 5ba80fab..423f3cd6 100755
--- a/git-dch
+++ b/git-dch
@@ -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: