Skip to content

Commit b541a6e

Browse files
committed
Merge branch 'topic/default/topic-mode' into 'branch/default'
Change default hgrc (with topic-mode) See merge request fluiddyn/hg-setup!8
2 parents f4e5201 + 23dd175 commit b541a6e

3 files changed

Lines changed: 19 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
See also the
44
[unreleased changes](https://foss.heptapod.net/fluiddyn/hg-setup/-/compare/0.1.4...branch%2Fdefault).
55

6+
## [0.1.5] (2025/06/26)
7+
8+
- `experimental.topic-mode = warning` by default.
9+
610
## [0.1.4] (2025/02/11)
711

812
- [!7](https://foss.heptapod.net/fluiddyn/hg-setup/-/merge_requests/7) confirm
@@ -23,3 +27,4 @@ See also the
2327
[0.1.2]: https://foss.heptapod.net/fluiddyn/hg-setup/-/compare/0.1.0...0.1.2
2428
[0.1.3]: https://foss.heptapod.net/fluiddyn/hg-setup/-/compare/0.1.2...0.1.3
2529
[0.1.4]: https://foss.heptapod.net/fluiddyn/hg-setup/-/compare/0.1.3...0.1.4
30+
[0.1.5]: https://foss.heptapod.net/fluiddyn/hg-setup/-/compare/0.1.4...0.1.5

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "flit_core.buildapi"
55

66
[project]
77
name = "hg-setup"
8-
version = "0.1.4"
8+
version = "0.1.5"
99
description = "Helper for setting up and configuring Mercurial"
1010
authors = [
1111
{ name = "Pierre Augier", email = "pierre.augier@univ-grenoble-alpes.fr" },

src/hg_setup/hgrcs.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,23 @@ def make_text(
154154
# (see 'hg help pager' for details)
155155
{paginate}
156156
157+
[experimental]
158+
# topic-mode (see `hg help -e topic`)
159+
# set the behavior when a draft commit is created in default:
160+
# - ignore (do nothing special, default)
161+
# - warning (print a warning)
162+
# - enforce (abort the commit, except for merge)
163+
# - enforce-all (abort the commit, even for merge)
164+
# - random (use a randomized generated topic)
165+
topic-mode = warning
166+
157167
[alias]
158168
lg = log -G
159169
up = up -v
160170
171+
# [subrepos]
172+
# git:allowed = true
173+
161174
[extensions]
162175
# uncomment the lines below to enable some popular extensions
163176
# (see 'hg help extensions' for more info)

0 commit comments

Comments
 (0)