[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: Rafael Garcia-Suarez <raphel.garcia-suarez_at_hexaflux.com>
Date: 2002-09-26 16:53:37 CEST

Scott Lamb <slamb@slamb.org> wrote:
> 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

This doesn't work, this should be at least s/^\? +// because there
are several spaces, and print "$_\0".
But of course perl can do the unlink by himself.

svn status --no-ignore | perl -lne '/^\?\s*(.*)/ and unlink $1'

---------------------------------------------------------------------
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:56:28 2002

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