pauljwilliams
pauljwilliams

Reputation: 19225

Relocating SVN working copy following branch rename

Is there a way to alter the branch to which a working copy relates?

Another developer has renamed the branch im wokring on, so I cant commit any work any more.

Could I just edit all the .svn directory files to point to the new location?

Upvotes: 9

Views: 4157

Answers (2)

Alastair
Alastair

Reputation: 1800

From the working copy directory:

svn switch http://server/svn/branches/newbranch

Upvotes: 4

Sander Rijken
Sander Rijken

Reputation: 21615

You almost answered it yourself, you can do this by relocating:

svn switch --relocate FROM TO

for example

svn switch --relocate http://server/svn/repos/branches/foo \
    http://server/svn/repos/branches/bar

Upvotes: 5

Related Questions