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
bdddd0f12f32
Commit
b475f29d
authored
Apr 05, 2020
by
Simon Chabot
Browse files
docs: add a readme
parent
99c6a55bbeb9
Changes
2
Show whitespace changes
Inline
Side-by-side
readme.md
0 → 100644
View file @
bdddd0f1
# autochangelog
Autochangelog is a mercurial extension that tries to automatically generate
a changelog based on the description of the commits.
## Installation
Download the package, and install it on your computer (with pip for instance)
(the installation is mainly needed to make sure that you have all the
dependancies)
```
bash
cd
hg-autochangelog
pip3
install
--user
.
```
Activate the extension in your
`~/.hgrc`
```
[extensions]
autochangelog = /path/to/hg-autochangelog/hg_autochangelog/main.py
```
## Usage
This extension adds a new
`autochangelog`
command to mercurial. The changelog is
written on the standard output. To write down the changelog, simply redirect the
standard output.
Error will be listed on the standard error output.
```
bash
hg autochangelog
>
CHANGELOG.md
```
By default, the command build the changelog with the ancestors of the last
public changeset. You can customize the revision set with the
`--rev`
option:
```
bash
hg autochangelog
--rev
"all()"
>
CHANGELOG.md
```
for instance, to use
*all*
the revisions.
setup.py
0 → 100644
View file @
bdddd0f1
#!/usr/bin/env python
# coding: utf-8
from
setuptools
import
find_packages
,
setup
author
=
"Logilab"
author_email
=
"contact@logilab.fr"
install_requires
=
[
"mercurial"
,
"Jinja2"
]
setup
(
name
=
"hg-autochangelog"
,
version
=
"0.1.0"
,
license
=
"AGPLv3"
,
description
=
"automatically generate a changelog from your history"
,
author
=
author
,
author_email
=
author_email
,
install_requires
=
install_requires
,
packages
=
find_packages
(
exclude
=
[
"test"
]),
include_package_data
=
True
,
zip_safe
=
False
,
)
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