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

Re: "bugtraq:message" and IBugTraqProvider

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Fri, 06 Mar 2009 16:14:55 +0100

Harald Hoyer wrote:
> We plan to upgrade SVN from 1.4. to 1.5. To integrate with our
> bugtracking system, we used the property "bugtraq:message" and an
> inhouse-version of TortoiseProc.
>
> Now with 1.5. we decided to drop away this special version of
> TortoiseProc and use the IBugTraqProvider-plugin.
> Unfortunately, the plugin and the "bugtraq:message"-property seem to
> battle for the bugid. And, unfortunately, the property wins.
>
> Details to reproduce:
> - Use the example plugin
> "version-1.5.8\contrib\issue-tracker-plugins\ExampleCsPlugin\". Make
> sure, that it is active
> - Set property "bugtraq:message" to "%BUGID% = issue number" and
> "bugtraq:append" to "no".
> - Take care, that "Recent messages" contains an entry like for example
> "12345 = issue number Some text".
> Now open commit-dialog. Choose the "12345 = ..." from "Recent messages".
> You notice, that there is no text box that shows the bugid ("12345" in
> out case), the "Choose Issue"-button seens to cover that.

This works correctly with the latest nightly build. This fix hasn't been
backported to 1.5.x because we never defined that using *both* would
work, so it's not an important bugfix and therefore wasn't backported.

But it will work with the upcoming version 1.6 (around end of march).

> Furthermore, when you click on "Choose Issue"-button and debug the
> "GetCommitMessage"-method, you will see, that the bugid-snippet is
> missing. Needless to say, it is also impossible for GetMessage to return
> something, that provides another bugid that will be recognized.

Yes, because it's not part of the message the user entered but
pre/appended to the message when the commit dialog is closed.

You could use the IBugtraqProvider2 interface (available in 1.6) which
allows you to check the 'complete' message in the method CheckCommit().

Stefan

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=1277720
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].

Received on 2009-03-06 16:15:24 CET

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

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