Monday, November 16, 2009

Remove svn folders recursively

Today I was about to zip and send some code folders to a co-worker, at that point what I needed was a simple feature to remove all svn related things from this folder and recursively through all subfolders, I still don't know isn't this included as a feature by kdesvn, eSvn, QSvn or RapidSVN.

I'm a Linux user so this will do the trick:

find . -name ".svn" -exec rm -rf {} \;
In case you are using Windows and probably Tortoise you can go this way:

Export the current copy and choose a different folder, it will copy the code there and it will remove all svn things. Beware that if you choose the same folder Tortoise will just remove things without copying anything.

Well I hope this helps ;)
blog comments powered by Disqus