TracTicketChangesetsPlugin vs TracTicketChangelogPlugin

Submitted by Jochus on Fri, 08/10/2010 - 00:21 | Posted in:

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

The content of this field is kept private and will not be shown publicly.

Full HTML

  • Lines and paragraphs break automatically.
  • You can caption images (data-caption="Text"), but also videos, blockquotes, and so on.
  • Web page addresses and email addresses turn into links automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <bash>, <cpp>, <css>, <html5>, <java>, <javascript>, <php>, <sql>, <xml>. The supported tag styles are: <foo>, [foo].
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.