How to update TortoiseSVN over the network?

怎甘沉沦 提交于 2020-03-05 06:37:05

问题


I want to import my project from the repository that is on another computer on the network. I have TortoiseSVN installed. I right click the folder -> SVN Check out -> Which prompts me for repository.

My repository exist on my system in c:\repositary\myprojects\trunk\project1.

How to I access from remote PC. On Local machine I use this syntax.

  • file:///c:/repositary/myprojects/trunk/project1 (three forward slashes)

The documentation says I should use this syntax.

  • file://servername/repositary/myprojects/trunk/project1 (two forward slashes + servername).

But this does not work. What do I have to do to make it work? Do I need to share that folder? Do I have to mention c:\ drive in the server path?

Want to mention, the repository is on my computer (Windows XP), and I want to access it over a virtual machine on another computer on the network.


回答1:


You can't shouldn't use file:// protocol for over-the-network SVN access. See this table from SVN book.

Why don't you setup an SVN server? You don't have to set it up using Apache, instead, just use plain svnserve




回答2:


I used a URL like this, and it works fine:

file://MYPC-NAME/repositories/All_CODE/trunk/Project1

Notice that it may not work all the time.

I had one confusing issue. What if your hard drive is partitioned into C, D and E Drive. Well in that case just use your PC name, followed by the folder that you have shared that contains the repositories.



来源:https://stackoverflow.com/questions/6752009/how-to-update-tortoisesvn-over-the-network

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