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

Re: [PATCH] Additions to INSTALL

From: Scott Lamb <slamb_at_slamb.org>
Date: 2002-09-26 16:36:37 CEST

Philip Martin wrote:
> $ svn st --no-ignore | grep ^\? | cut -c2- | xargs rm -rf

I would like to point out that this is not safe if filenames contain
spaces. Untested command that should be safer:

svn status --no-ignore \
| perl -ne 'chomp; s/\? // and print, "\0"' \
| xargs -0 rm -rf

(Requires perl (probably possible with sed; I don't know how) and an
extended xargs (GNU and FreeBSD's both work).)

-- 
Scott Lamb
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Sep 26 16:38:56 2002

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