How to switch subversion repository in Visual Studio using AnkhSVN?

后端 未结 7 1510
遇见更好的自我
遇见更好的自我 2020-12-30 09:00

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

7条回答
  •  旧巷少年郎
    2020-12-30 09:31

    Try going to File > Subversion > Change Source Control... and changing the SCC Binding URL.

    EDIT: I see that's not editable. You may need to drop to the command line for this.

    In your base directory, issue this svn command:

    svn switch --relocate http://old.repo.location http://new.repo.location
    

    with your speific URLs, of course. I'd recommend reading up on the switch command so you're sure of what you're doing. When you reopen VS, AnkhSVN should pick up the new bindings. If you've added the solution through the File > Subversion menu, you may need to edit the .sln file. Just open it in a text editor and change all of your old repository URLs to the new URL.

    You could also install TortoiseSVN and use the context menu to issue the Relocate command. This will be the easiest.

    Back up your directory before any of these changes, of course.

提交回复
热议问题