Re: [Bulk] Re: [Bulk] Re: Scheduled build always say build not required
Jim Hague <[email protected]> Tue, 4 Apr 2006 09:31:50 +0100
| Newsgroups | gmane.comp.java.anthill |
|---|---|
| Message-ID | <[email protected]> |
On Tuesday 4 April 2006 05:32, gnugy wrote:
> My Regular Expressions are a little rusty my interpretation of
> the pattern is that it will match any line that starts with
> an r, followed by 1 or more digits. Then a space followed by a pipe(|).
> This is followed by another space then any number of non-whitespace
> characters. Followed again by space, pipe, space. Followed by
> 1 or more characters that aren't ('s.
That's correct. You're obviously not *that* rusty :-)
> If this is the case then I thought the problem was with the
> fact that my author, I have "(no author)", contains a space.
Ahhhhh! Or, indeed, aaarrgggghhhhh! Yes, that would indeed cause the problem.
I didn't realise this was possible. Having checked the Subversions FAQ, do I
assume someone is accessing the repository via anonymous write acces to
Apache?
> So the space would break the (\\S+) part of the expression but this
> isn't followed by a ' | '. So I tried replacing the expression with:
>
> "^r(\\d+) \\| ([^\\|]+)\\| ([^\\(]+)"
>
> Running with this expression worked, awesome, thanks for your help.
Good news, and thank you for your persistence and getting to the bottom of
this.
I'll redo the regular expression along the lines you outlined and send a patch
to Urbancode.
(I know that in one sense I should be using the 'svn log' XML output here. But
frankly, I don't want to haul in an XML parser when parsing the regular
output via REs is so quick and easy).
--
Jim Hague - [email protected] Never trust a computer you can't lift.