问题
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