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

Re: bugtraq:logregex and multiple bug IDs

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Tue, 03 Feb 2009 17:32:32 +0100

David Huang wrote:
> On Feb 3, 2009, at 3:53 AM, Sam Nabialek wrote:
>> I find that #(\d+) will do what you want. That is if you can ignore
>> the 'issue' text. We've loosened up our format to allow bug IDs
>> anywhere in the text.
>
> From what I can tell, the reason #(\d+) works is because TSVN finds
> all matches of the regex in the commit message. With my original
> "issue #(\d+)(?:, #(\d+))?", it'll link all the bug IDs in "issue #123
> issue #456 issue #789". However, as you say, "#(\d+)" works if you
> don't mind matching even when there's no "issue ". The regex I'd
> actually like to use is more complicated; I was just asking a question
> about the feature in general and giving a simple regex as an example.

It's best to use a two-lined regex (as explained in the docs). The first
line of the regex matches the issue string, the second line then is used
to extract the issue ID from the issue string.

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=1097537
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].

Received on 2009-02-03 17:32:54 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.