如何运行 Mercurial 服务器?
通过 Subversion,我使用 Visual SVN 服务器在几分钟内启动并提供服务。 Mercurial 是否有等效项,以便我可以运行 hg.mydomain.com?
With Subversion, I used the Visual SVN server to get it up and serving in a few minutes. Is there an equivalent for Mercurial, so I can run hg.mydomain.com?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
PublishingRepositories wiki 页面很好地概述了您可以与之交换变更集的所有不同方式人们。它们的范围从简单的共享文件空间,到 ssh,到
hgserve
中的构建,再到 Mercurial 安装附带的 hgweb/hgwebdir cgi 脚本。您需要选择最适合您的机制,但您描述的 hg.yourdomain.com 机制与 hgwebdir 在 wiki 上有详细说明。The PublishingRepositories wiki page gives a great overview of all the different ways you can exchange changesets with people. They range from simple shared files space, to ssh, to the build in
hg serve
, to the hgweb/hgwebdir cgi scripts that came with your mercurial installation. You need to pick the best mechanism for you, but the hg.yourdomain.com mechanism you describe most closely aligns with the hgwebdir in Apache solution which is fully detailed on the wiki.对于 Windows 上的 Mercurial 服务器,您可以在这里获得非常好的教程: http://www .jeremyskinner.co.uk/mercurial-on-iis7/ 或此处:http://blog.schuager.com/2010/03/how-to-setup-mercurial-server-on.html
设置起来非常简单,并且像魅力。
for Mercurial server on Windows, you can get a very good tutorial here: http://www.jeremyskinner.co.uk/mercurial-on-iis7/ or here: http://blog.schuager.com/2010/03/how-to-setup-mercurial-server-on.html
It's pretty easy to set up and works like a charm.
您可以尝试 HgLab:它是一个托管的 Mercurial 服务器,具有推拉支持、访问控制和 Active Directory 集成。
You can try HgLab: it's a hosted Mercurial server with pull and push support, access control and Active Directory integration.
查看 发布存储库 上的 Mercurial wiki。它包含有关使您的存储库在 LAN 或 Internet 上可用的各种不同方法的有用信息。正如皮特的评论所说,Mercurial 有一个内置的、快速的网络服务器,可以临时与一两个同事合作,但这听起来并不适合您的要求。
顺便说一句,我倾向于只使用
BitBucket.org 来托管我的存储库(公共和私有)和一些错误跟踪。2020 年更新:他们不再提供 Mercurial 托管:
https://bitbucket.org/blog/sunsetting-mercurial-support-in-bitbucket
对于最近的列表请参见https://www.mercurial-scm.org/wiki/MercurialHosting
您可能需要研究他们的计划并权衡其与运行您自己的服务器。付费计划允许您设置 CNAMES 将
hg.yourdomain.com
指向 BitBucket 服务器。Check out the Mercurial wiki on Publishing Repositories. It contains good information about a variety of different ways to make your repo available across your LAN or the internet. As Pete's comment said, Mercurial has a built-in, quick webserver for working with one or two colleagues on a temporary basis, but that doesn't sound like it would work for your request.
As an aside, I tend to just use
BitBucket.org to host my repositories (public and private) and some bug tracking.Update in 2020: They no longer offer Mercurial hosting:
https://bitbucket.org/blog/sunsetting-mercurial-support-in-bitbucket
For a recent list see https://www.mercurial-scm.org/wiki/MercurialHosting
You may want to look into their plans and weigh that against running your own server. The paid plans allow you to set up CNAMES to point
hg.yourdomain.com
to the BitBucket servers.2020 年有 heptapod:
https://about.heptapod.host/
他们提供付费托管,但您可以还可以下载一个实例以在您自己的服务器上运行它。
In 2020 there is heptapod:
https://about.heptapod.host/
They offer paid hosting but you can also download an instance to run it on your own server.
2023 年,将出现用于自托管 git、mercurial 和 subversion 存储库的 SCM-Manager。它是免费且开源的。我在 Windows 上使用 2.20 版本很幸运。不幸的是,它高度依赖于版本,并非所有版本都能正常工作。
In 2023 there is SCM-Manager for self hosting git, mercurial, and subversion repositories. It is free and open source. I have had good luck with version 2.20 on Windows. Unfortunately, it is highly version dependent, and not all versions work well.
Mercurial 带有内置的 Web 界面: http://hgbook .red-bean.com/read/collaborating-with-other-people.html
Mercurial comes with a build in web interface: http://hgbook.red-bean.com/read/collaborating-with-other-people.html