On Scmbug

Dave Swegen dswegen at software.plasmon.com
Mon Jun 7 07:20:03 UTC 2004


On Fri, Jun 04, 2004 at 08:48:12PM -0700, Kristis Makris wrote:
> Also, in the current bugzilla-watcher script, this regex fails to
> capture the case where new files are added:
> 
> my @filearr = ($rest =~ /([\d\.]+,.*?,[\d\.]+)/g);
> 
> eg the case where cvs passes:
> 
> 'test NONE,test,1.1 NONE,test2,1.1'

I haven't tried it, but this may work:

my @filearr = ($rest =~ /(([\d\.]+|NONE),.*?,[\d\.]+))/g);

Otherwise simply doing a sub of '\sNONE,' for ' 0.0,' or somesuch before
splitting the input would probably do the trick (Yay! Another icky
hack!). 0.0 would then be shorthand for no version.

Cheers
    Dave



More information about the developers mailing list