Mantis Source Control Integration is a pain

Tagged:
In NetMRG's bugtracker, I always thought it'd be nice to have a comment every time a commit to a bug was made. That way everyone involved would know when changes were being made, and what changes. Luckily, Mantis allows for this via its Source Control Integration.
If only it were that easy.
To make a long story short; whenever you start a project like this - use a separate CVSROOT - it will make your life much easier.
My loginfo
netmrg /usr/bin/php -q /path/to/mantisbt/core/checkin.php
ALL    /usr/local/bin/syncmail -S "NetMRG-CVS: " -R return@addr --quiet %%s to@addr
My mantisbt config_inc.php
$g_source_control_notes_view_status = VS_PUBLIC;
$g_source_control_account           = 'netmrgcvs';
$g_source_control_set_status_to     = OFF;
$g_source_control_regexp = "/bug\s*[#]{0,1}(\d+)/i";

How does this work ?? You write in your comment for the svn/cvs commit simply: bug #XXX solved and now in the notes of mantis it says exactly so ??

And what is that loginfo file you wrote ?? I think it's the key to run that script with each commit, but i don't know exactly.

Thx for your help, Nils

Yes, it will add a comment to the correct bug (er, Issue) about the stuff you just commited. This is for CVS; I haven't gotten around to setting this up again for subversion.
The loginfo file is a file in your CVSROOT directory; I would recommend reading at cvshome.org.

loginfo is a configuration file of CVS. It's located in CVSROOT in the repository. So the idea is that every time you submit a bug, the log output is sent to the script checkin.php that verifies the log and write info about it in mantis database.

You may find it more valuable in the long term to use Scmbug:

http://freshmeat.net/projects/scmbug/

beware: scmbug has a list of dependencies a mile long.

I'm thinking about trying out trac (http://trac.edgewall.org/) to integrate everything for NetMRG. I don't like the default look, but I'm hoping that can be fixed.

Dear Sir,

Need help...
I have Mantis and SVN installed on my machine (Windows. I want to integrate it. I scratched my head for a long time now.. need your help.. If you could help me in giving simpler steps.. that would be great help.. I have php as well i installed activeperl...
Help
Thanks in advance
Regards
sandeep

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is used to make sure you are a human visitor and to prevent spam submissions.
Syndicate content