realm3: web applications

<List Articles>SVN Unadd

Originally posted February 19, 2008

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.