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

Re: remove .svn entries

From: Ph. Marek <philipp.marek_at_bmlv.gv.at>
Date: 2004-09-13 08:07:47 CEST

> > Not to be too picky here, but this plain doesn't work for path's
> > containing
> > spaces. In Linux, do
> > find . -iname '.svn' -print0 | xargs -0 rm
> > instead. (Just for the sake of being complete, that is).
>
> Not to be *too* picky, but .svn is likely to be a (non empty)
> *directory*.
> find . -iname '.svn' -print0 | xargs -0 rm -rf

"Not to be *too* picky" :-), but I'd suggest even

 find . -name '.svn' -type d -exec rm -rf {} \;

(which saves trouble with files like .SVN and similar)

(Yes, I know, my version does *a lot* calls to rm. But, believe it or not,
I've had some problems of the shell saying "parameter list too long".
Yes, I know about "xargs -l". That would be
 find . -name '.svn' -type d -print0 | xargs -l200 -0 rm -rf
)

Regards,

Phil

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Sep 13 08:08:31 2004

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

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