Subversion - Checkout a parent directory

advertisements

In my repository, lets say I have this:

Animal
  Dog
     Beagle
     Hound
     ...

Lets say I checked out Dog to a working directory and I realized, whoops, I really wanted to checkout Animal.

I can delete my working copy, the Dog directory, and checkout Animal, but is there way I can do so without deleting and checking out again?

If my working copy of Dog has Animal as a parent folder and I checkout Animal without deleting Dog, I get something like "subversion failed to add directory versioned same name already exists".

I'm also using tortoise. Thanks.


This is not possible directly.

The easiest way is to delete your working copy and do a new checkout of Animal.

If you have any changes in Dog that you'd like to keep, move Dog to a temporary location, checkout Animal and then copy Dog back into the Animal directory.