Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon Chabot
hg-autochangelog
Commits
d771fc1d58cb
Commit
eafcff8b
authored
Jun 22, 2020
by
Simon Chabot
Browse files
fix: sort by revision and not by date
parent
4583f7f2320c
Changes
1
Hide whitespace changes
Inline
Side-by-side
hg_autochangelog/main.py
View file @
d771fc1d
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment