How to change where Subversion repositories are stored?

北慕城南 提交于 2019-12-21 03:40:32

问题


Newbie question: I just installed VisualSVN Server and created a repository. I noticed that it created it at C:\Repositories. I need it stored on my D drive instead as there is more space there. I Googled around but can't figure out how to do it.

This is a new installation so - if it is easier - I could delete the repository first.

In a nutshell: How do I get Subversion to store repositories at D:\Repositories instead of C:\Repositories?

Thanks, Roger


回答1:


Uninstall your VisualSVN Server, move the files, reinstall it.

When you reinstall, choose new repository location.




回答2:


  1. Open VisualSVN Server Manager
  2. Right-click on root node and select Properties
  3. Change repositories location on Storage page
  4. Click OK



回答3:


I got myself in a bind where the repository was moved before I could make a change on the server. All I got was an error on my VisualSVN Server Manager that said "Can't open directory ..."

My solution, after trying those already provided, which did not work in my case, was to access the registry and modify the RepositoriesRoot entry to the correct path under

"HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432Node/VisualSVN/VisualSVN Server"

This may be under the "HKEY_LOCAL_MACHINE/SOFTWARE/VisualSVN/VisualSVN Server" location if you're not running a 64 bit OS

Changing the value in that location got me back up and running.

... A little more detail as to why the other solutions didn't work: 1. I couldn't uninstall and then re-install because the uninstall attempted to access the original source location, which no longer existed. 2. Because of the state of my server I wasn't able to perform access the "Properties" menu option.



来源:https://stackoverflow.com/questions/1107620/how-to-change-where-subversion-repositories-are-stored

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