Thursday, April 3, 2008

Redmine with Mercurial

Redmine just released a 0.7RC1 version. For those who does not know, Redmine is project management tools like Trac. It is developed using Ruby on Rails.

At the moment redmine has much more features that have been in Trac's request list for a while.

Some of the important features:
  • Multi projects support
  • Built-in support for numerable version controls. Pretty much most of the known open source tools out there, like: cvs, subversion, git, mercurial, bazaar, darcs.
This makes redmine one of my favorites tools at the moment.

Anyway, current integration between Redmine and mercurial has a slight incomplete feature where it does not able to show the different activities on the files between versions/revisions. So I had created a patch to mercurial_adapter.rb file to support that feature. The patch can be found here.

At the moment I am using hg status to pull the information, but it is not very efficient as it requires multiple calls to hg status for each revisions it processes. Originally I try to keep the original code calls to utilize the hg log which require 1 call and just parse the data. Unfortunately the regular hg log does not provide the file action information and I am unable to get the file_adds and files_dels to show anything on hg log --template.

I am currently running on Ubuntu 7.10 with standard ubuntu package of mercurial version 0.9.4. If anyone know how to get the file_adds and file_dels to work, please drop me a note.

No comments: