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

[TSVN] issuetrackers and regex

From: SteveKing <steveking_at_gmx.ch>
Date: 2005-02-11 18:23:04 CET

Hi guys,

I'm currently working on the specs to enhance the integration of TSVN
with issuetrackers by using regex. And I've come to a point where I need
your help and feedback.

With regex it's possible to extract a bug ID from a log message and use
that to link a commit to a specific issue. The question is now if _one_
reges is enough or if we need two of them.

One regex:
using lookahead/lookbehind it's possible to just extract the bug ID
alone but still have enforced an e.g. "Issue #" in front of the bare bug
ID. But most of the available regex libs don't support repetition or
optional items in lookahead/lookbehind expressions. So AFAIK a regex
which can extract the bare bug ID's from a string like
Issue #573, #928
and
Issues #872, #098
isn't possible because of the optional 's' in the lookbehind.

Two regex:
the first regex would match the whole string, e.g.
Issue #487, #938
or
Issues #872, #098
and the second regex would then extract the bare bug ID's from the
string matched by the first regex.

And keep in mind that the simpler regex libs don't even support
lookahead/lookbehind at all (like javascript and ruby).

So what do you think is the way we should go?

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Fri Feb 11 18:26:16 2005

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.