[Bug 5984] New: Feature request: template for the `tag` commit message.
mercurial-bugs at mercurial-scm.org
mercurial-bugs at mercurial-scm.org
Wed Sep 12 09:35:36 UTC 2018
https://bz.mercurial-scm.org/show_bug.cgi?id=5984
Bug ID: 5984
Summary: Feature request: template for the `tag` commit
message.
Product: Mercurial
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: feature
Priority: wish
Component: Mercurial
Assignee: bugzilla at mercurial-scm.org
Reporter: jeberger at free.fr
CC: mercurial-devel at mercurial-scm.org
It would be nice if there was a way to replace the default commit message used
for `hg tag` including the tag and hash in the replaced message. I'm able to
get close to what I want by putting the following in my `.hgrc`:
[committemplate]
changeset.tag.add = "chore: Add tag TAG for changeset
{p1node|short}.\n\nHG: ------------------------ >8
------------------------\n{diff()}"
[defaults]
tag = -e
However:
- This only works when tagging the current revision: if I use the `-r` option
to tag a different revision, then I get the wrong hash in the message.
- This requires me to replace "TAG" with the tag manually instead of having it
be filled automatically.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list