Back to top

integrate mantis with SVN using subversion post commit hook

From the mantisbt source control integration comments something like this should work:


\#!/bin/sh
REPOS="$1"
REV="$2"

SVNLOOK=/usr/local/bin/svnlook
PHP=/usr/bin/php
MANTIS=/srv/www/novo/html/mantis/core/checkin.php
COMMIT_MSG=`$SVNLOOK log -r $REV "$REPOS"`

$PHP -f $MANTIS <<zzzMantiszzz
Revision: $REV: $COMMIT_MSG
zzzMantiszzz

Also, great details at Alt Tag

Category: 
People Involved: