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

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

From: Huy Hoang Nguyen <nguyen_at_beyondvision.de>
Date: 2007-10-14 23:14:34 CEST

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

Regards,
Huy Hoang Nguyen

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Mon Oct 15 07:15:55 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.