For the last few weeks, I have been testing 2 plugins for Trac: TracTicketChangesetsPlugin and TracTicketChangelogPlugin. The first seemed to me more mature (more development, documentation, etc ...). But it was really a pain-in-the-ass to get it working. There are way too many steps to let it work ... and in the end ... I didn't have any success.
So then I started working with the Changelog. I had some issues with Python 2.6 (plugin was build for Python 2.5). More details can be found here: http://trac-hacks.org/ticket/7746. The plugin was requiring simplejson, which is a package for Python 2.5. That package doesn't exist for Python 2.6 as the last version has "json" built-in. So I manually had to change the source.
After changing the Python code, I was able to install the plugin, but I still wasn't able to see any changelogs. It noticed that I was using
#{ticket_number}: {my_custom_message}
Notice the ':' character. The standard regex (log_pattern = \s*#%s+\s+.*) does NOT support this. So after altering the regex: log_pattern = \s*#%s+(:)\s+.*, I was able to see my changelogs.
Now, the importance of this plugin: we are able to get an overview of which changes are made for which ticket. The only thing you have to do, is to include the ticket number in your SCM commit message :-)
Add new comment