Display list of changesets linked to a particular Ticket on Trac
I have a Trac installation with the Trac-Git plugin. When committing to git, I can use TracLinks to reference to a Bug by using a prefix bug:123 or #123 and the changeset is linked to the bug. I want to achieve the reverse effect now. On a given ticket, I want to see a list of all the Changesets associated with it. I read in other threads that a post commit hook 开发者_高级运维can be used. Are there any plugins that already do this? How do I achieve this?
There is a template trac-post-commit-hook python script which adds the change comment as comment to the bugs, if they are specified on in the comment. While the script is intended for svn, it seems that git support could be simply added by changing some environment variables.
精彩评论