Remove SVN From Windows Folders and Rant On How Adobe Locks Me Into Microsoft

As I'm working this fine Sunday afternoon, I ran across a tidbit Alex shared with me; I have no idea from where he got it. If you need to remove a folder hierarchy from subversion version control, you just need to remove all of the .svn folders. That's a bit of a pain to do manually, especially if you have a lot of sub-directories.

For Windows users, the adding the following keys to your registry will add an entry in your windows explorer context menu (right mouse click) that will make this a simple and painless task:

Windows Registry Editor Version 5.00

@="Delete SVN Folders"

@="cmd.exe /c \"TITLE Removing SVN Folders in %1 && COLOR 9A && FOR /r \"%1\" %%f IN (.svn) DO RD /s /q \"%%f\" \""

To make your life easier, just copy the above and paste it into a new document - use Notepad if you must. Save it with any file name you want, so long as you give it an extension of reg. For instance, removeSVN.reg seems like a good name for it. Once you have your file, find it in windows explorer and right click on it. Choose Merge from the top of the menu. It gives you a warning keenly advising you of the dangers of doing this. If you are that special combination of brave and lazy, you'll click "Yes".

If you are using Windows XP, the story ends here. For Vista users, there is more to say. The permissions thing can get to be a bit annoying. Obviously, if you are modifying the registry, you need to have administrative privileges, however, you can't just launch windows explorer with the Run as administrator option. If you try that, like I just did several times, you will get an unhelpful error message about the registry. To make the change, I've found that you need to explicitly log into the administrator account.

Even on my own machine, even though it causes grief from time to time, I opt to work from a regular user account and bump myself up to administrator on an as-needed basis. Microsoft still has a ways to go until they figure out a sane security model. I'll likely have finally plunged into an all Linux development environment by then.

BTW: I'm blaming Adobe on that - if they would make a Linux a 1st class citizen among their supported platforms, I could push a lot of people away from windows, including myself. As it is, since I find myself obliged to support windows-based workflows, I don't know how to really extricate myself from Microsoft. Of course, just to confuse everyone (by everyone, I mean me), Adobe releases a 64 bit flash player for Linux, but not windows. That's cool, but what's that about?

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
BlogCFC was created by Raymond Camden. This blog is running version Contact Blog Owner