文件系统而不是http服务器上的Mercurial远程服务器 [英] Mercurial remotes on the file system instead of http server

查看:96
本文介绍了文件系统而不是http服务器上的Mercurial远程服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在从事从svn到mercurial的迁移.我的需求很简单,我需要对公司内部网进行源代码控制.我到处都可以看到通过IIS设置远程存储库的示例.我只是看不到何时可以在服务器上进行共享.

I'm currently working on a migration from svn to mercurial. My needs are plain and simple, I need source control over an intranet in our company. I see examples everywhere for setupping remote repos over IIS. I just don't see the point when I can just make a share on a server.

我仍然可以使用NTFS权限在存储库上设置授权和身份验证吗?

Can I still setup authorizations and authentications on repos using NTFS permissions?

我想念什么吗?

谢谢

推荐答案

将存储库放在文件共享上是可行的,但这不是Mercurial团队建议的方式.

Putting a repository on a file share works, but it's not the way recommended by the Mercurial team.

请参阅HG上发布存储库的共享磁盘"部分. Wiki:

See the "shared disk" part of Publishing Repositories on the HG wiki:

通常限于Intranet,由于网络文件系统可靠性方面的一般性问题,通常不推荐

请务必查看克里斯·贝克(Chris Becke)的答案也如此,因为他指出了另一个有效的缺点(写访问权限的人会从网络共享中删除内容,无论有意还是无意).

Be sure to check out Chris Becke's answer as well, because he points out another valid disadvantage (people with write access deleting stuff from the network share, be it intentionally or not).

如果您了解(并可以使用)这些内容,那么毫无疑问,将存储库放在网络共享上是最简单的设置方法.

If you are aware of (and can live with) these things, putting the repositories on the network share is without a doubt the easiest way to setup.

我的个人经验是,只要Windows共享位于真实" Windows计算机上,它就可以完美运行.
在工作中,我们在真实的Windows服务器上使用共享没有问题,但是在家里,我遇到了NAS问题(其行为类似于Windows共享,但实际上在Linux上运行).
您可以在此处阅读有关我的经历的更多信息:
可以推送"吗要在64位Windows 7上使用Mercurial进行网络共享?

My personal experience is that it works perfectly as long as the Windows share is on a "real" Windows machine.
At work we're using a share on a real Windows server without problems, but at home I ran into issues with a NAS (which behaves like a Windows share but actually runs on Linux).
You can read more about my experiences here:
Can you 'push' to network share using Mercurial on 64bit Windows 7?

这篇关于文件系统而不是http服务器上的Mercurial远程服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆