Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon Chabot
hg-autochangelog
Commits
c4eccacc8833
Commit
25f2db33
authored
Mar 18, 2021
by
Simon Chabot
Browse files
style: updated black version
parent
4e683be04122
Changes
1
Show whitespace changes
Inline
Side-by-side
hg_autochangelog/main.py
View file @
c4eccacc
...
...
@@ -129,7 +129,10 @@ class Changelog:
return
Change
.
from_commit
(
commit
)
def
render
(
self
):
return
CHANGE_LOG_TEMPLATE
.
render
(
changelog
=
self
,
ChangeType
=
ChangeType
,)
return
CHANGE_LOG_TEMPLATE
.
render
(
changelog
=
self
,
ChangeType
=
ChangeType
,
)
@
command
(
...
...
@@ -157,10 +160,7 @@ def autochangelog(ui, repo, **opts):
tags
=
[
t
for
t
in
commit
.
tags
()
if
t
!=
b
"tip"
]
if
tags
:
version
=
Version
(
tags
[
0
].
decode
(
"utf-8"
),
datetime
.
fromtimestamp
(
commit
.
date
()[
0
])
)
version
=
Version
(
tags
[
0
].
decode
(
"utf-8"
),
datetime
.
fromtimestamp
(
commit
.
date
()[
0
]))
changelog
.
add_commit
(
commit
,
version
)
print
(
changelog
.
render
())
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