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

Re: BDB vs. FSFS

From: Bryan Donlan <bdonlan_at_gmail.com>
Date: 2004-10-19 20:38:40 CEST

On Tue, 19 Oct 2004 10:56:39 -0700, Raye Raskin <rayer@pobox.com> wrote:
>
> ----- Original Message -----
> From: "Hakan Koseoglu" <hakan.koseoglu@pcmsgroup.com>
> To: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
> Cc: <users@subversion.tigris.org>
> Sent: Tuesday, October 19, 2004 4:33 AM
> Subject: Re: BDB vs. FSFS
>
> >> > $ find . -type d -exec rm -rf {} \;
> >>
> >> Aii, this is what happens when you don't read your own commands, what
> >> i meant was of course:
> >>
> >> $ find . -type d -name '.svn' -exec rm -rf {} \;
> >
> > I find this method faster:
> > find . -type d -name '.svn' | xargs rm -rf
>
> I agree. As I recall, using -exec causes a new rm process to
> be started for each rm invoked -- much slower than with xargs.
>
> Also, I would suggest the following:
>
> find . -type d -name '.svn' > foo
>
> take a look inside foo with your favorite editor...
> edit as necessary, JUST to be safe...
>
> cat foo | xargs rm -rf
>
> It's just too easy to get burned with rm -rf.

tr "\n" "\0" < foo | xargs -0 rm -rf
Otherwise Bad Things could happen if you have whitespace in your
directory names.

-- 
bd
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Oct 19 20:39: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.