TortoiseSVN tip

jplindstrom on 2004-04-10T22:27:50

I just tried to move a file from one directory to another. The class changed from Game::Worm to Game::Object::Worm so it needed a new place to live.

The TortoiseSVN docs said to Rename it to the new name, or Right-Drag-n-drop and chose "Move files in Subversion" or somesuch.

That didn't work. Because as before, I hadn't added the new directory Object to Subversion, and so TortoiseSVN didn't recognize it as a valid destination.

So I had to first create the Object directory, then Add it to Subversion, Commit the change, then Move the file to the new directory, then Commit that change.

The status icons are a lifesaver for this, I don't think I would have figured this out without that feedback (non-version-controlled files don't have the status color blob).

I'm not sure if this is 100% right, because even though I think there is a link between the old and new path, the file looks like it was deleted from the first location and added to the first. Maybe that's normal. Maybe it's a leaky abstraction.

(And maybe the use of the phrase "leaky abstraction" increased a thousandfold when Joel Spolsky wrote about it.)