SVN Unadd
Brian Dailey is a LAMP-stack developer with a wide range of experience in the development world. Get in touch!
For more articles on the development trade, see the Blog.
This is just one of those things that I ran into while making the move from CVS to SVN.
If you svn add a directory it will add everything underneath it recursively. Normally this fine, but if you accidentally added a directory it is not completely obvious how to remove it.
svn rm will require using --force and will remove your working copy. That's no good.
What you want to use is svn revert. This will remove it from the .svn listings and retain the working copy.
Whatever you do, don't do as I did (admittedly, foolishly) and delete the .svn subdirectory. That doesn't help anything at all and an svn status command will mark it with a tilde (~), hitherto known as the "WTF did you do?" icon.
Thanks!