windows 在 LAN 中的系统上设置和查找 svn 存储库

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3635832/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 15:11:01  来源:igfitidea点击:

Setting & finding a svn repository on a system in LAN

windowseclipsesvnrepository

提问by Jitendra

I have installed TortoiseSVN on machine 192.168.1.56, & want to synchronise with it from 192.168.1.60, when i insert the repository address in URL like this "file:///192.168.1.56/D:/Repository" and click finish, i get the message "Location information has been specified incorrectly" what is the proper format.

我已经在机器 192.168.1.56 上安装了 TortoiseSVN,并希望从 192.168.1.60 与它同步,当我在 URL 中插入存储库地址时,如“file:///192.168.1.56/D:/Repository”并单击完成,我收到消息“位置信息指定不正确”什么是正确的格式。

采纳答案by Alexander

Actually TortoiseSVN recommends not to do that as you can read here:

实际上 TortoiseSVN 建议不要这样做,你可以在这里阅读:

If you were thinking about setting up a multi-user repository on a network share, think again. Read the section called "Accessing a Repository on a Network Share” to find out why we think this is a bad idea. Setting up a server is not as hard as it sounds, and will give you better reliability and probably speed too.

如果您正在考虑在网络共享上设置多用户存储库,请再想一想。阅读名为“访问网络共享上的存储库”的部分,了解为什么我们认为这是一个坏主意。设置服务器并不像听起来那么难,它会为您提供更好的可靠性和速度。

I recommend you to set-up svnserveand you can check how to do it in thisTortoiseSVN step-by-step tutorial to achieve it. Otherwise you will need to install and set-up WebDAV (e.g. libapache2-svn) in a capable web server (e.g. apache2).

我建议您设置svnserve,您可以在TortoiseSVN 分步教程中查看如何操作以实现它。否则,您将需要libapache2-svn在功能强大的 Web 服务器(例如apache2)中安装和设置 WebDAV (例如)。

回答by Van Hung

It is able to do that on LAN.
1. Remember to share the folder you use as repository
2. On pc B, select SVN checkout..., click the browse button, locate to that shared folder, like this: enter image description hereAnd it's done.

它能够在局域网上做到这一点。
1. 记得共享你用作仓库的文件夹
2. 在pc B 上,选择SVN checkout...,点击浏览按钮,定位到那个共享文件夹,像这样: 在此处输入图片说明大功告成。

回答by splash

Have you installed TortoiseSVNor a Subversionserver? For the svn client TortoiseSVN you need a server. In your case I would recommend to use a svn server with a graphical user interface for Windows: http://www.visualsvn.com/server/

您是否安装了TortoiseSVNSubversion服务器?对于 svn 客户端 TortoiseSVN,您需要一个服务器。在您的情况下,我建议使用带有 Windows 图形用户界面的 svn 服务器:http: //www.visualsvn.com/server/

A valid URL may look like this svn://192.168.1.56/repository. The repository has to be created on the server.

有效的 URL 可能如下所示svn://192.168.1.56/repository。必须在服务器上创建存储库。

回答by Thunder

Try

尝试

file://192.168.1.56/Repository

file://192.168.1.56/Repository

I am not installing the server because I didn't want my computer resources to be used by the server (as I will be using this computer as a desktop as well) ,Also we are sharing among 2 members only so it worked for me in-spite of some disadvantages.

我没有安装服务器,因为我不希望服务器使用我的计算机资源(因为我也将这台计算机用作台式机),而且我们仅在 2 个成员之间共享,因此它对我有用- 尽管有一些缺点。