This is an oldie but goody. If you use SVN you’ve probably wanted to recursively remove all the .svn folders.
This is something that comes up more often than you think. For example, if your local SVN depot fucks up somehow and you have uncommitted changes. Just copy the folder, right click on the copy and delete svn folders. Then re-download a fresh copy from the SVN server and copy the cleaned folder over the top. Then you can commit the changes, nice and clean.
A search on Google brings up this – which is perfect. Except if you’re lazy you probably just want to download the .reg file and run it. Well here it is..
Hope that helps!
Another option to you if you’ve got TortoiseSVN is the Export folder menu button… this does however copy all the files to another location so its not quite as handy as the reg file.
Yeah, this is a better option than Export. I’ll be sure to try it out.
I had to just look what it was just to make sure that it was not some kind of sick joke but I can comfirm that this is legit.
I love the idea of a tool like this, though i do not use svn alot aside from checking out addons and the 1 or 2 open source projects. Speaking of the SVN folders does garrysmod look though these at any time during the loading prosess, quite a few people say garrysmod looks though these and that slows loading.
Awesome, quite useful.
Cheers.
I have honestly never seen an alternative to TortoiseSVN O.O
But I’m sure there are plenty now when I think about it, should I change? And real cons with TortoiseSVN?
Been using this for a while now. Glad it still worked when I switched to Windows 7 :)
You can also use the svn export feature which basically does the same.
Fantastic, thanks!
for /r /d %x in (*) do rmdir /s “%~x\.svn”
Is there a reset file?
http://code.google.com/p/svn-cleaner/
MUCH MUCH better.
Let’s you remove all the .svn, all but the root .svn, and local repo files.
Thanks a lot :)
I already had this. It’s such a great help!
Too bad it doesn’t show up ONLY on SVN Folders.
Nice trick. There is a minor problem however. The command shows up for anything that is considered a ‘folder’. This includes things like My Computer and zip files.
The proper key is Directory. This limits the context to directories only. The change is simple, just change “Folder” to “Directory” in the .reg file and it will place the keys there instead.
Thanks, that really helps!
Excellent, this’ll come in handy. Thanks Garry!
I usually just search for .svn files. Now I know there’s an easier way.
Would be really nice if it had an “Are you sure ?” dialog. Very nice though thanks.
Thanks for your reg file:)