SVN relocate issue with uuid
Asked Answered
L

2

6

I have a question about svn switch --relocate. I have an old repository called beta and we are moving to a new SVN server. There I created a new repo called legacy and committed all the files from the beta repository. Now I need to update all the working copies to use the repo legacy. When I do a command for this, it says the UUID doesn't match:

svn switch --relocate file:///var/www/svn/beta https://domain.com/svn/legacy

svn: The repository at 'https://domain.com/svn/legacy' has uuid '3e359681-0317-844a-a84c-80a4a624e59d', but the WC has '35afee29-560b-4976-914e-5bafcd58a7c0'

How can I fix it so that the working copy is connected to the legacy repo?

Leede answered 15/4, 2013 at 11:15 Comment(2)
Check out a fresh WC instead? It's usually easier in the long run.Exeunt
Loading an actual dump of beta into legacy instead of a 'new commit' normally also sets the uuid, and as a bonus lets you keep all history.Kingsley
G
2

You can't switch between repositories, if they have different UUID (they are "unrelated"). You have to make

  • new fresh checkout from legacy

or

  • setuuid legacy for using UUID of beta
Gunshot answered 15/4, 2013 at 18:10 Comment(0)
C
0

The only thing I have found that works is (and this will eliminate your history)

  1. Delete the .svn folder in the root of your project
  2. Check it in to the new repo.

No amount of fiddling with the UUIDs helped me.

Clavius answered 10/3, 2022 at 21:1 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.