我如何自己为多个用户托管 Mercurial 存储库?
有许多针对 git、Mercurial 等的托管服务。我需要托管自己的服务,因为我们想要保留的一些数据具有敏感性质,我们无法将其移出现场。
我需要在服务器上托管一个 Mercurial 存储库,以便许多人可以访问它以拉取更改并推送自己的工作。 需要某种密码保护,也可以使用 ssh。 如果可能的话,我更喜欢 HTTP(S) 作为传输协议(按照 Google 代码)。
有人可以指出我如何执行此操作的描述吗? 到目前为止,我只找到了有关托管单用户存储库和托管服务的描述,但没有找到有关自己进行多用户托管的描述。
There are a number of hosting services for git, Mercurial, etc. I need to host my own, because some of the data we want to keep there is of a sensitive nature, and we cannot move it off-site.
I need to host a Mercurial repository on a server so that a number of people can access it to both pull changes and push their own work. There needs to be some kind of password protection, and it could also use ssh. I would prefer HTTP(S) as the transfer protocol (a la Google Code) though, if possible.
Can somebody point me to a description of how to do this? I have only found descriptions for hosting single-user repositories and hosting services so far, but nothing about doing the multi-user hosting myself.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看 Mercurial 网站上的 PublishingRepositories 页面。 它将告诉您如何设置
hgwebdir.cgi
脚本以通过 https 提供多个存储库。配置完成后,我建议将其添加到您的 hgrc 中:
我发现它比默认主题更好一点。
Have a look at the PublishingRepositories page on the mercurial site. It will tell you how to set up the
hgwebdir.cgi
script for serving multiple repos over https.Once you've configured it, I would recommend adding this to your hgrc:
I find it's a bit nicer theme than the default.