subversion switch

When using subversion it is sometimes neccessary to “switch” a checkout to another location.

There are different scenarios :

  1. The switch occures inside the same repository, eg. from the trunk to a branch.
    > svn switch URL [PATH]
  2. A change switches to the new location of a repositiory after the repository was moved
    > svn switch –relocate FROM TO [PATH]
  3. A switch is neccessary from a read only checkout to a writeable checkout.
    This command is often used to switch a read only svn checkout to a writeable checkout :
    > svn switch –relocate svn:// svn+ssh:// [PATH]

Leave a Reply