Search code examples
visual-studio-2008svnankhsvn

How to switch subversion repository in Visual Studio using AnkhSVN?


I've been developing a project locally and using a local svn server for versioning in visual studio. I now want to switch to xp-dev hosted versioning but cannot seem to get rid of the svn bindings on my solution? Is there an easy way to duplicate a solution without its versioning settings or to simply switch to the other svn (which is completely empty)?


Solution

  • Edit: Note that this assumes that you are trying to move to a new repository, dropping all your history, not move a repository. Thinking about it you might want to replace the removing all .svn folders with simply exporting the folder into the newly created workspace for the new repo.

    Not that I know of. I'd probably do this,

    • Remove all the .svn folders from your solution
    • Create a folder for the solution in the new repo,
    • Check it out,
    • Move your current solution into that folder,
    • Load up the solution in Visual Studio
    • Use AnkhSvn to add it again. It should pick up the fact that it's in a subversioned directory and allow you to do that.