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

Re: Bug in bugtraq:url handling

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2007-06-27 19:58:48 CEST

Robert Hudson wrote:
> We have noticed an issue with TortoiseSVN when it automatically generates a URL
> to a given bug. If we do a commit with TortoiseSVN and enter the Bug ID in the
> dialog box (Provided via bugtraq:message). In this case the actual log message
> is of the format:
>
> Bug ID XXXXX:
> The message on the new line.
>
> And it behaves correctly giving the URL required.
>
> If you manually enter the Bug ID so that it matches the format but put the
> comment directly following the bug format i.e:
>
> Bug ID XXXXX: The message on the same line.
>
> Then it does not pick up the Bug ID and generate the URL.

If you use the bugtraq:message property, then the bug id must be on a
separate line. When you enter the bug id manually, the newline is
missing and therefore the bug id isn't recognized and turned into an URL.
You can use the bugtraq:logregex property to avoid this. Just add the
following property:

name:
bugtraq:logregex
value:
Bug ID (\d+):
(\d+)

note that the value of the bugtraq:logregex property has two lines.
After that, your manually entered bug id will get turned into an url by
the regex property.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed Jun 27 19:58:58 2007

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

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