Dealing with svn “object of the same name is already scheduled for addition” errors on Windows

I love using TortoiseSVN for easy source control on Windows, but on my Vista build (still RC) I’ve had a few instances of blue screen during commits, which is bad. In the last case, my repository got a little mangled, and I couldn’t do anything with it without the error “object of the same name is already scheduled for addition” appearing and aborting the operation.

The trick seems to be to do a revert operation on the directory, then an update. You may need to rename the original files/directories that are having a problem, and then diff/merge them back into whatever comes up, depending on what state the repository was in during the crash.

Then you might want to upgrade your OS and TortoiseSVN to the latest versions, and let me know how that works out for you - I see a day not far off where I’ll be like those people still running MacOS 9 when X has been around for years…

Technorati Tags: ,