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: bugzi...@mercurial-scm.org Reporter: jeber...@free.fr CC: mercurial-devel@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. _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel