Subversion is probably the best versioning and source control software out there. While you're working with a Subversion client (like Tortoise SVN, Subclipse or whatever), little hidden folders named ".svn" are being created and maintained in every single folder of your project. Needless to say that in projects with tons and tons of package folders, you end up with a whole lot of .svn folders.
Anyway, in some cases you might want to have all that meta data removed from your project. I won't go into possible reasons why you might want to do this and neither am I going to dive into the fact that generally it's advisable not to start messing around in those meta data folders... Other people can explain this way better than me (which most people do.... about most things
).
Cleaning all those folders manually may be a very long and tedious job. You can write a shell script to get the job done or use this overly simple AIR application (which I gave the funny name "SubSweep"). If you don't trust the thingy, check out the source code first (you see, no worries
).
Please note that in Subclipse there's an option to export your project without the meta data folders. And you can remove the svn folders from a local version of your project with Subclipse by chosing Team > Disconnect.


7 Comments
nice, though i wouldn’t install a software just to delete some files.
i’d use Total Commander
alt-F7 -> ‘feed to listbox’ -> ctrl-A -> delete
Hans, you just saved my day!
Thanks a lot!!!
Why not just use the “export” method of svn which exports a clean .svn-less version of the directory?
@reyco1: certainly, but in some cases your SVN metadata might become corrupted, moved by mistake, etc… and then you need to be able to clean the folder that got messed up. I’ve witnessed that especially people relatively new to Subversion have a tendency to mess up SVN’s metadata
Thank you!
I needed that, this will save me sooo much time!!
Well done!
Ariel
PayPerBlog.com
Hey Hans,
Althoug there are many tools out there capable of doing file/folder editing I realy like your AIR app subsweep.
. Would it be possible, AIR being popular for it’s drag/drop functionality, to build in functionality where a user can drop in the folder that needs “subsweeeping”?
I have a feature request though
I thought about building something like you build thousand times but my time gets swallowed up by other projects, of which I am sure you will recognize.
To give something in return and hope that it might come in handy, I want to send you a little air app I wrote for overlaying designers jpg’s to check with your development. Let me know your email and I will send it to you if you are interested.
Thanks for subsweep anyway
Cheers
Eel
2 Trackbacks
[...] The link to the post: http://www.novio.be/blog/?p=153 [...]
Air Tools Tips…
The light is NT50AE2 Hitachi 2 inch of 18 gauges Brad Mailer end of this document small wood working projects. Viewed in the heart of high capacity, Lana ventilation, integration of perimeter of simple removable drive and nose, as a longer term, this i…