Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Relocating SVN working copy following branch rename

Tags:

svn

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?

like image 473
PaulJWilliams Avatar asked Dec 10 '10 16:12

PaulJWilliams


1 Answers

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
like image 105
Sander Rijken Avatar answered Nov 04 '22 18:11

Sander Rijken