[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: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2002-09-26 16:59:08 CEST

Rafael Garcia-Suarez wrote:
> 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'

that won't work for directories.

-garrett (who was trying to figure out how to do this last night)

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:59:48 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.