Trac Mercurial Changeset Plugin

Comments

Recently I decided to install Trac for my startup project. I went with version 0.12 because of its new multi-repository support (a feature Trac should have had long time ago). 

I have to confess this is the first time I use this software. There are many out there that can work for you. But Trac was the right choice this time: budget, Mercurial support through Trac Mercurial plugin, low resource consumption, etc.

But there was an important feature I was missing in this combo. I wanted to see a changelog list in my ticket, showing me related changesets to tickets. After trying to activate a plugin that would let me have this, like TrackTicketChangelogPlugin from Richard Liao:

I found that the problem was that Trac’s revision table wasn’t being updated, like with SVN. Trac was developed from the beginning only having SVN into account. I have to say I thought about integrating Mercurial support into Trac writting the necessary files and patches. But after some hours looking at its code, I changed my mind. A plugin was the right way to go this time. 

So I developed a TracMercurialChangesetPlugin for syncing Mercurial into Trac’s revision table. You can download it from my Github. README.txt contains enough information about how to set it up and install it. I tried to make it as easy as possible.

As a result. The plugin allows you to:

  • Search among Mercurial changesets in Trac
  • Better and more accurate results in Timeline
  • Install other Trac plugins that need this table to be filled

After getting in contact with Richard Liao to tell him I had written a plugin that would allow his to work with Mercurial repositories. He mailed me back telling me this had to be with Ticket #8417 from TracMercurial Plugin.

I have to say I made a big mistake not looking at TracMercurial Plugin development before coding. That way I could have solved the ticket, developing the feature within TracMercurial plugin.

Anyways, I have mailed the main developer of this great plugin, Christian Boos, to inform him about my little project and see if we can work on integrating mine with his work. Until then, you can use my plugin for an even better Mercurial Trac integration.

blog comments powered by Disqus