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

RE: Moving .svn directories out

From: Mike Meyer <mmeyer_at_lexmark.com>
Date: Mon, 20 Apr 2009 11:04:52 -0400

Bob Archer <bob.archer_at_amsi.com> wrote on 04/20/2009 09:32:51 AM:

> > Since the .svn directories reside within the same tree structure as
> the
> > source files, this slows down recursive operations (e.g. string
> > searches across files), and increases the amount of space needed to
> backup
> > the source tree.
>
> Most tools allow you to exclude certain directories using some type of
> pattern matching. You should look into doing that with your search tool.

grep -R/-r - nope. the exclude works on files, but doesn't stop searching
into the directories.

find - -prune works, sorta kinda. It's quietly ignored for depth-first
searches, and finds the .svn directories.

du - yes. However, you can't both include them in the output sizes and
exclude them from the output listing.

tar - nope, can only exclude files by name, from a file prepared in
advance.

cpio - nope.

The real problem is that the stock commands for dealing with trees simply
don't work right. I almost never think "Cr*p, this is an svn working copy,
tweak the command" before issuing it, it's always "What's this cr*p in my
- oh, right, this is an svn working copy" - by which time the fastest way
to get the answer is rerun the command and grep out the .svn cruft.

        <mike

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1825967

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-20 17:06:05 CEST

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