Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

svn switch error - is not the same repository

Tags:

svn

I have recently moved the SVN server and now i am tring to relocate the working copies from my computer to the new server. But i get the strangest error. i do :

svn switch http://99.99.99.new/svn/company/project/trunk/web 

but i get

svn: 'http://99.99.99.old/svn/company/project/trunk/web' is not the same repository as 'http://99.99.99.new/svn/company/project' 

the move was made with dump and import ... and the repo root is on http://99.99.99.new/svn/company/project

Do you guys have any ideas of what might be wrong ? thanks a lot

like image 791
Gabriel Solomon Avatar asked May 29 '09 12:05

Gabriel Solomon


People also ask

How to switch to another branch in svn?

To switch back, just provide the URL to the location in the repository from which you originally checked out your working copy: $ svn switch http://svn.red-bean.com/repos/trunk/vendors .

How does svn switch work?

A switch moves your working copy through time and space. Because svn switch is essentially a variant of svn update, it shares the same behaviors; any local modifications in your working copy are preserved when new data arrives from the repository.

How do I change my svn remote URL?

Just open the database (e.g. in SQLite Browser), browse table REPOSITORY, and change the root and uuid column values to the new ones. You can find the UUID of the new repo by issuing svn info NEW_SERVER . Again, treat this as a last resort method.


2 Answers

Try using

svn switch --relocate http://99.99.99.old/svn/company/project/trunk/web http://99.99.99.new/svn/company/project/trunk/web 

As noted by Sporino in the comments, since Subversion 1.7, there's a seperate relocate command:

svn relocate http://99.99.99.old/svn/company/project/trunk/web http://99.99.99.new/svn/company/project/trunk/web 
like image 149
Steef Avatar answered Sep 21 '22 13:09

Steef


Also, in TortoiseSVN there is "Relocate" option, which you should use in situations like these (instead of the "Switch" option).

like image 44
Pascal Lindelauf Avatar answered Sep 20 '22 13:09

Pascal Lindelauf