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

RE: RE: New vendor drops on vendor branch - but how?

From: Reedick, Andrew <Andrew.Reedick_at_BellSouth.com>
Date: 2006-08-14 19:33:21 CEST

> -----Original Message-----
> From: Gavin Lambert [mailto:gavinl@compacsort.com]
> I haven't tried this myself (so try it without the 'rm' first to make
> sure it gives the right results!), but this ought to remove all files
> except for the .svn folders, starting from the current directory:
> find . | grep -v .svn | xargs rm -f

        find . -name '.svn' -prune -o -print | xargs rm
        If you forget the syntax, there's an example in the man page for

To find out what to delete, you can also do this:
        cd to old version of code
        find . -name '.svn' -prune -o -print | sort > ../one.txt
        cd to new version of code
        find . -name '.svn' -prune -o -print | sort > ../two.txt
        cd ..
        diff one.txt two.txt | tee diff.one.two.txt

You can then use the diff output to determine which files to delete.
The diff can also be used to find moves.

Copies/moves/renames can be scripted for the most part if the filenames
are unique, but it's still guesswork and assumptions for the most part.


The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. 162

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Aug 14 19:35:42 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.