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

Re: Bug (Major): bugtraq:logregex does not correctly match the bug IDs when using a multi-matching pattern

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: 2007-10-15 10:17:55 CEST

On 14/10/2007, Huy Hoang Nguyen <nguyen@beyondvision.de> wrote:
> Hello,
>
> I tried to set bugtraq:logregex to "[Ii]ssue #?(\d+)(,? ?#(\d+))*"
> as shown in the TortoiseSVN help (and alternatively, also
> "[Ii]ssue #?(\d+)(?:,? ?#?(\d+))*" and "(\d+)(?:,(\d+))*").
>
> However, when I try to enter a log message like
> "issue #1, #2", TortoiseSVN freezes as
> the regex matches, i.e. when typing "2".
>
> Viewing log messages with matching strings does not
> cause TortoiseSVN to hang but the match captures
> are not properly highlighted if the regex can match
> multiple bugs in one string:
>
> "issue #1, #2" only highlights the letter "i"
> but neither "1" nor "2".
>
> Generally speaking, it seems that *any* pattern with
> multiple capture groups does not behave as expected.
>
> Tested with TortoiseSVN 1.4.5 and nightly build
> TortoiseSVN 1.4.99, Build 10992 - 32 Bit -dev, 2007/10/13 18:36:02

Try this 2-line expression:
[Ii]ssues?:?(\s*(,|and)?\s*#\d+)+
(\d+)

Simon

-- 
       ___
  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 Mon Oct 15 10:18:04 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.