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

Re: Strip .svn info

From: Ryan Schmidt <subversion-2006q2_at_ryandesign.com>
Date: 2006-06-13 11:07:49 CEST

On Jun 13, 2006, at 10:45, Alan McDonald wrote:

>> I'm not entirely sure what all you're getting at, but the command
>> you're looking for is "svn export":
>> svn export /path/to/workingcopy /path/to/export
>> where /path/to/export will be created, and will be a copy of
>> everything in /path/to/workingcopy except the .svn directories and
>> their contents.
> yes - I know this option but I want to leave the working copy in
> place -
> just strip the svn files from it.

Oh. Well then a recipe with "find" should work (on Unix-like
operating systems, such as Linux, *BSD, or Mac OS X; if you're on
Windows I cannot help you). Run this in the root level of the working
copy, which will delete all directories named ".svn" in the current
directory and all subdirectories, and be sure it's what you really
want to do, because there is no undo:

find . -name .svn -type d -print0 | xargs -0 rm -rf

For those who would like to argue about whether piping to xargs is
the best solution, I would refer them to recent discussion in the
mailing list archives where I believe all salient points have already
been made:


I'm not saying my find/xargs combo above is the best solution, it's
merely the solution I can remember, and it works fine for me. YMMV.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jun 13 11:09:20 2006

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.