Optionally include tag text in changeset description of revpanel
Created originally on Bitbucket by mwolfe02 (Michael Wolfe)
I love the built-in Issue Tracking feature that dynamically inserts hyperlinks in the revpanel based on Regex patterns. However, I constantly forget to include the case number when writing commit messages.
Since the commit message is part of the changeset it cannot be changed after the fact. However, since tags are stored separately from the changeset, they can be applied after the fact.
The only problem is that the tags are not currently processed when inserting the dynamic hyperlinks. I've come up with a workaround that I believe addresses the problem in a non-intrusive way.
I'm attaching a bundle of changes that does the following:
-
Adds an option to the Issue Tracking section: "Inline Tags" (Show tags at start of commit message) Default: False (ie, no change in behavior)
-
If "Inline Tags" is True, then when a changeset is selected, the tags are "quoted" with square brackets and prepended to the commit message (eg, "bug fix" becomes "[Case 1234] bug fix")
By adding the tags inline with the rest of the message, the dynamic hyperlinking is applied to the tags as well as the commit message.
Thanks for considering this,
Mike
Attachments: TortoiseHg_Dev_12495_to_12496.hg