Mercurial 有类似 svnserve 的东西吗?
我对 Mercurial 作为 DVCS 平台很感兴趣,但想要一个类似于 svnserve 的易于使用的服务器。有 HgServe,但它似乎是只读的。如果我希望能够在另一台机器上托管服务器,似乎我需要设置 apache 等。真的是这样吗?对于安全性不成问题的本地网络,是否有更简单的方法?
I'm attracted to Mercurial as a DVCS platform, but would like an easy to use server similar to svnserve. There is HgServe, but that appears to be read-only. If I want to be able to host the server on another machine, it appears I need to set up apache, etc. Is that really the case? Is there an easier method for a local network where security isn't an issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这里的问题是它太简单了,善变的文档未能适当地涵盖它。如果您使用 ssh 克隆:
它将在“服务器”系统上执行正确的操作(在操作期间,它会自动在另一端运行
hgserve
),然后进行任何后续操作(push 、pull 等)将自动通过 ssh 运行。 (如果您希望路径从文件系统根目录开始,请确保在主机名后使用双斜杠,否则它将从 ssh 放置的位置开始)。请注意,Hg“用户”与 ssh 用户是分开的,因此如果您希望每个人都使用相同的 ssh 受限帐户,他们可以 - hg 仍将通过其 .hgrc 中设置的用户来识别其变更集。
The problem here is that it's so easy, the mercurial documentation fails to appropriately cover it. If you clone with ssh:
It will do the right thing on the "server" system (it automatically runs
hg serve
on the other end for the duration of the operation), and then any subsequent operations (push, pull, etc.) will be automatically run over ssh. (Make sure you use the double slash after the hostname if you want your path to start at the filesystem root, otherwise it'll start wherever ssh puts you).Note that Hg "users" are separate from ssh users, so if you want everyone to use the same restricted account for ssh, they can - hg will still identify their changesets by the user set up in their .hgrc.