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

Re: svn stat on new files

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-12-06 23:40:03 CET

Matt Kraai <kraai@alumni.cmu.edu> writes:
> Is the following test what you had in mind?

That regexp

> + for line in stat_output:
> + if re.match(" +newfile", line):
> + status = 0

will match both "? newfile" and " newfile". Maybe you want

   re.match("^ +newfile", line):

instead, or something like that?

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Dec 7 00:18:32 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.