How can I change the repository url using AnkhSVN 2.x

吃可爱长大的小学妹 提交于 2019-12-01 20:07:30

In the daily builds of AnkhSVN (and since March 2009 the stable version) the Switch command will handle this case for you.

AnkhSVN will detect that the repository root doesn't match and then it will ask you if you wish to relocate.

See http://ankhsvn.net/daily/ for the daily builds.

The "switch" command is the wrong command to use!

You have to use the "relocate" command. Not sure if AnkhSVN has this though.

For the svn client, you have to use

svn switch --relocate FROM TO [PATH...]

(yes, it's the 'switch' command, but only UI wise - internally, relocating uses a completely different API than switch).

I had a lot of troubles while I was working with AnkhSVN and subversion.

I have a very easy idea to switch solution to another repository. It seems strange but it really works.

At firs you have to export a template from your current project. Now create new solution using your own template, then add new solution to new subversion directory and delete your template from MyDocuments. That's it.

Rob

Ughhhh, it's a pain. I had a similar issue for a long time, and I'm still a bit shakey on how to get it to work. My answer may not be applicable (I hope it helps though).

Try clearing the SVN folders that are hidden in your project's directory... take a look at this question. The very last answer has a good method for clearing the hidden SVN folders if you don't know how (warning, it requires a registry tweak).

Once you do that, you should be able to change repositories. Unfortunately, I could not find any config files to manually edit.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!