// caseydunham.net

Monday, June 15, 2009

Removing all .svn folders

At work I am working on modifying an existing application for a proof of concept. The application I am working with was pulled out of the companies svn repository and we started making the changes. We are getting ready to put it into a new svn repository created for our purposes but we needed to delete all the hidden svn folders. This project was quite large and the folder hierarchy was deep as most Java projects tend to be.

I know that I could use the svn export command to copy the project to a new location but I wanted something to remove the svn folders from the current tree. This isn’t the first time that I wanted to do something like this and I thought it would be a good time to write a tool to do it for me.

Doing a quick search on Google I found a link to a Windows Explorer shell extension to do just that written by John Galloway. It works great but I wanted something to use from the command line so I spent a few minutes and wrote an unsvn batch script. Feel free to use it as you will. I also created a .reg file from the registry settings in John Galloway’s article. Just save it to the desktop and double click on it, Windows will set the registry keys for you.

Download: unsvn.bat unsvn.reg

posted by Casey at 9:27 pm  

Powered by WordPress