[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Subversion and Mantis integration

From: Stefan Hoffmann <stefan.hoffmann_at_explido.de>
Date: Fri, 22 Feb 2008 11:21:36 +0100

hi,

thanks for your answer.

KM wrote:
> Can you explain this again?
I will give it a try. First I have to say that it works.

> Maybe send the bugtraq property settings - in case that would help.
Property Value
bugtraq:label Mantis ID:
bugtraq:message [Mantis ID #%BUGID%]
bugtraq:url http://localhost/mantis/view.php?id=%BUGID%
bugtraq:warnifnoissue true

> We are also using svn (1.4.3) w/Tortoise (1.4.3) and setting the bugtraq
> properties, including prompting for the Mantis ID (1.0.8) and adding a
> comment to the log.
:label and :warnifnoissue does this for me.

> It is adding something to the log message when committing, but I guess
> its the wrong item?
The :message property appends the given string at the end of the log
message (comment). My post-commit hook:

--
#!/bin/sh
CHECKIN="/var/www/mantis/core/checkin.php"
PHP="/usr/local/bin/php -q"
REPOS="$1"
REV="$2"
log=$(/usr/local/bin/svnlook log -r $REV $REPOS)
echo "$log\n(Revision: $REV)" | $PHP $CHECKIN
--
log containes "My log messsage. [Mantis ID #000123]".
The mantis/core/checkin.php parses this for the ID.
> When you say "At each message it appends [ID#number], this is imho redundant.", that is the purpose of setting the properties.  
This is the intentend way as far as I understand the docs.
But:
I'm using mainly TortoiseSVN, when viewing the log messages of one file 
or directory, I have a column Bug-Id. This let me assume that the Bug-Id 
is somewhere stored, imho this this must be some kind of property.
Is it correct that the Bug-ID is stored somewhere else?
Or is it just extracted by Tortoise from the log message?
mfG
Stefan Hoffmann
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-02-22 11:22:06 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.