Remove .svn directories from a working copy linux then copy new .svn copies back to it.

Written by James McDonald

May 18, 2012

Warning: This is a procedure that can bork your working copy. Backup and test to make sure you can recover before you even think about doing this.

Regarding this post:
http://andrew.hedges.name/blog/2009/01/25/how-to-recover-from-checksum-mismatch-errors-in-svn

Quickly remove .svn directories from a working copy linux
cd /to/svn/working/copy/dir

e.g.
/etc/squid
find . -type d -name .svn | xargs rm -rf

Checkout a fresh copy of the working copy somewhere else.

cd $HOME

svn co http://yourreposserver/path/to/squid

cd squid
find . -type d -name .svn | xargs -ISVN cp -arv SVN /etc/squid/SVN

0 Comments

Submit a Comment

Your email address will not be published.

You May Also Like…

ZPL SBPL

Zebra Printer Language http://labelary.com/viewer.html The above website has a page where you can enter ZPL and it...

PHP Iterators

Just came across a Youtube talk "Iterators in PHP" by Jake Smith published in 2014 that steps through the many...

PHP array_map Multiple Arrays

array_map can take multiple arrays. I like how it starts mapping through them starting at the first element of each...