[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: KM <info4km_at_yahoo.com>
Date: Fri, 22 Feb 2008 09:20:10 -0800 (PST)

As for your last question - I think that the bug id is only retrieved from the tortoise window - and then is added to the log as per your bugtraq settings. However we don't actually have subversion and mantis linked - in any other way (i.e. automatically writing to logs on checking etc.) When you commit you get prompted to enter the Mantis ID - and it saves the log in svn via the string you set up [i.e. in your case [Mantis ID #123] ] I don't have anything automatically writing to the Mantis issue or anything -
   
  I think maybe you do (??). I could never get the integration working. But i still don't think it gets stored anywhere.
   
  Don't think I helped you much
  KM

Stefan Hoffmann <stefan.hoffmann_at_explido.de> wrote:
  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
       
---------------------------------
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.
Received on 2008-02-22 18:20:47 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.