Erik's Thoughts and Musings

Apple, DevOps, Technology, and Reviews

Subversion Woes

I shot myself in the foot today at work.

I was doing a massive rename of one of the components I am working on for work. That meant I not only had to rename things in UIs but I also had to rename a bunch of files and file references in our main development tree.

So I reluctantly fire up svnX and go start doing svn moves. All of a sudden there is a new folder entry in the svnX list called ".". Not thinking, I scratched my head and said "What the heck is that?" and clicked the delete button. About 30 seconds in I realize my mistake. svnX interpreted the item as the current folder and started doing a svn delete at the root of my whole dev tree! I kill the svnX app and then go look at the logs at the damage. The problem is my log scripts are getting errors left and right because my dev tree is in such crappy state.

So I go to the root of the dev tree and try a svn cleanup and svn revert. No dice. svn keeps on complaining about every framework bundle being locked for some reason. After about an hour of dinking at the command line I determine my sandbox is just hosed. The only way I can think to get things back to the way they are is to do a clean checkout. It took 45 minutes to download the dev tree. I run my log scripts and find out the damage isn't as bad as I thought. Luckily I am back to where I started.