[Trac] Changelog / ticket association

Pim Bliek pim at frog.nl
Tue Aug 2 03:07:51 CDT 2005


> I'm 99% sure a link to a sample post-commit hook script exists on  
> Trac's Trac, but since I can no longer access any edgewall.com pages  
> from work (there's some odd routing issue upstream from me) I can't  
> provide you with the link--sorry!


http://projects.edgewall.com/trac/file/trunk/contrib/trac-post-commit-hook

Should be easy to setup. Fire it off from a SVN post-commit script in
<svnrepos>/hooks/post-commit
Use the template in <svnrepos>/hooks/post-commit.tmpl and copy it to
<svnrepos>/hooks/post-commit and edit for your needs. I did put the
trac-post-commit-hook.py in my trac-env and customised it to my needs.
Work like a charm!

You can also use
http://projects.edgewall.com/trac/attachment/ticket/897/trac-pre-commit-hook the pre-commit-hook to check if the keywords were filled into the commit logs. I use it to force developers to use the keywords so all our commits are always traceable to a ticket.

Good luck
Pim




More information about the Trac mailing list