如何从网络共享中查看 Subversion 存储库?
我房间里的笔记本电脑(Windows Vista)上有一个 Subversion 存储库,但我想在楼上的计算机(Ubuntu Linux)上查看它。我将存储库放在网络共享上,但我不确定如何将其签出到 ubuntu。
请注意,我的笔记本电脑上没有设置颠覆服务器,我只是尝试从网络目录中进行签出,就好像它是这台计算机的本地目录一样。我有什么选择?
I have a Subversion repository on my laptop in my room (windows Vista), but I want to check it out to a computer upstairs (Ubuntu Linux). I put the repository on a network share but I'm not sure how I can check it out to ubuntu.
Note that I don't have subversion server set up on my laptop, I'm just trying todo a checkout from a network directory as if it were local to this computer. What are my options?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不要直接访问网络共享上的存储库!即使你可能让它工作,你最终也会得到一个完全损坏的存储库。
只需设置一个服务器(svnserve 或 apache)并以这种方式访问它即可。设置这样的服务器很容易。您花五分钟的时间进行设置将确保您的数据安全。
Do not access a repository directly on a network share! Even though you might get it to work, you eventually will end up with a completely corrupted repository.
Just set up a server (svnserve or apache) and access it that way. It's easy to set such a server up. And those five minutes you spend setting it up will keep your data safe.
更新:请阅读Stefan 在对网络共享使用
file:///
之前发出的警告。它可能不适用于您的具体情况,但它是一个很好的一般原则。
您无法对 smb:// 共享进行结账;但是您可以使用 smbmount 挂载 Windows 共享,然后
您可以像使用普通的
file:///
存储库一样使用它,位于 /mnt/svnserver 下UPDATE: Please read Stefan's warning before using
file:///
against a network share.It may not apply in your specific situation but it is a good general principle.
You can't do a checkout against a smb:// share as such; but you can mount the windows share with smbmount i.e.
after that you can use it as if it were a normal
file:///
repo, located under /mnt/svnserver如果您可以切换计算机的角色(Ubuntu 机器上的 Subversion 存储库),安装将在 10 分钟内完成(请参阅 说明)
安装非常简单,无需动脑子。真的
If you can switch your computers' roles (the Subversion repository on your Ubuntu box), the installation is done in 10 minutes (see the instructions)
The installation is so easy it's a no-brainer. Really