开发者

Display list of changesets linked to a particular Ticket on Trac

开发者 https://www.devze.com 2023-01-21 01:42 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消