Commit eafcff8b authored by Simon Chabot's avatar Simon Chabot
Browse files

fix: sort by revision and not by date

parent 4583f7f2320c
......@@ -141,7 +141,7 @@ def autochangelog(ui, repo, **opts):
version = Version()
user_revs = opts["revs"].decode("utf-8")
for rev in repo.revs(f"sort({user_revs}, -date)".encode("utf-8")):
for rev in repo.revs(f"sort({user_revs}, -rev)".encode("utf-8")):
commit = repo[rev]
if len(commit.parents()) > 1:
# ignore merge
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment