SVN: Repair damaged Working Copy
Lastly i fell over a extremely corrupt svn working copy i had on a production-server. No cleanup, update, … svn commands could revive it. So i thought of just replacing the corrupt .svn folders in the production workingcopy with something that works.
I managed to create a fresh svn checkout into a folder of the release.
After that, list all files that are not .svn related:
# find . -name '.svn' -prune -o -type f -print
Use that command to delete the other files/folders:
# find . -name '.svn' -prune -o -type f -print | xargs rm
From now on it was easy. Simply copy/move by overwriting existing .svn files from this temporary folder to my production checkout, replacing the corrupt .svn files with new ones, followed by a bit svn update and/or svn revert and i was done.
Keeping this as a reminder though