TortoiseSVN (relocate to new repository)

kaushalparik27 picture kaushalparik27 · Nov 5, 2009 · Viewed 36.2k times · Source

We are facing a problem in relocating our application from the old repository to a new one.

Initially we were using //10.X.X.50/svn/XXX. Now we try to shift to the new repository at //10.X.X.152:8443/svn/XXX as the server hard disk has crashed (10.X.X.50).

While we are trying to use relocate option in TortoiseSVN - it gives an error:

The repository at 'https://10.X.X.152:8443/svn/XXX' has uuid '5005c752-e8bc-6a46-9f1b-84ec39085508', but the WC has '005a1777-a2fa-4437-9a0c-b35647624529'

We are using TortoiseSVN 1.5.9, Build 15518 - 32 bit.

Currently, the new repository which is created on another server has three folders created: Branches, Tags and Trunk.

Answer

Christian C. Salvadó picture Christian C. Salvadó · Nov 5, 2009

You should either:

  • Set the old UUID for your new repository, using svnadmin setuuid
    • svnadmin setuuid REPOS_PATH [NEW_UUID]
  • Or get a fresh checkout from the new repository.

If you go for the first option, when the new repository UUID's match the old one, just go to your working copy in Windows Explorer, right click in a blank spot and choose,

*TortoiseSVN → Relocate..., and there you will be prompted for the new repository location.

Menu

Then:

New URL