views:

277

answers:

2

My task is to move this VS solution and projects to another SVN server. I'm working with Visual Studio 2010 RC1 and AnkhSVN 2.1.7819....

  • Currently the files are all bound to a repo at C:\Repositories\foo.
  • I'd like to move it to http://someSite/svn/foo

The most obvious way, I found, was the Pending Changes - Source Files window (which appears to belong to AnkhSVN). It appears to allow you to change the repository that you're working with.

alt text

alt text

I'm presented with this error message:

Repository UUID '152c39db-5799-4234-85f2-074004a6fcad' doesn't match expected UUID '6c83444d-7f93-d64a-b0a0-23283495cf17'

Questions

  • How can I avoid this message in AnkhSVN?
  • Are there better solutions for moving the source into a repo on the new target?
  • How can I get Ankh to 'forget' that repo at C:\Repositories\ forever?
+2  A: 

This dialog performs a switch between different locations in the same repository (and allows you to change the URL if the repository moved).

In your case you want to switch to a completely different repository that doesn't share history. (Well maybe you want to keep the history but you didn't ask).

To copy the data to a different repository you can perform an export and then use the 'Add Solution to Subversion wizard'.

TortoiseSVN has an in-place export function that deletes all the .svn folders from your working copy. You could use that too. (Make sure you refresh the AnkhSVN status after removing the .svn directories)

Bert Huijben
+1  A: 

If you want to keep history, see Migrating Repository Data Elsewhere in the excellent svnbook. It also describes a way to keep the repository UUIDs the same, so you can just relocate from the old one to the new one.

Be sure to disable the old one though so you don't get commits to both at the same time (very bad thing if that happens).

Sander Rijken