I recently found myself with a checked out Subversion project that was orphaned from its repository. I wanted to create a new repository and import the files there to start from scratch, but was stuck with thousands of .svn folders, all through the project.
This is the best way I’ve found to remove all the .svn folders and their contents. Once this is done the project should be just like a freshly-exported one. Obviously this works well for me on Mac OS 10.6 but use caution: operate on a copy first and check the results.
Note: This should be blindingly obvious, but just to be totally clear, you will not be able to check this project into the repository it was checked out from after you do this.
Remove old .svn files in an orphaned checked out project
I recently found myself with a checked out Subversion project that was orphaned from its repository. I wanted to create a new repository and import the files there to start from scratch, but was stuck with thousands of .svn folders, all through the project.
This is the best way I’ve found to remove all the .svn folders and their contents. Once this is done the project should be just like a freshly-exported one. Obviously this works well for me on Mac OS 10.6 but use caution: operate on a copy first and check the results.
Note: This should be blindingly obvious, but just to be totally clear, you will not be able to check this project into the repository it was checked out from after you do this.
Just run this in Terminal.app:
find ./ -name .svn -exec rm -rf {} \;
Hopefully this is of use to someone!