开发者

How do I run a Mercurial server?

开发者 https://www.devze.com 2022-12-26 04:43 出处:网络
With Subversion, I used the Visual SVN server to get it up and serving in a few minutes. Is t开发者_如何学编程here an equivalent for Mercurial, so I can run hg.mydomain.com?The PublishingRepositories

With Subversion, I used the Visual SVN server to get it up and serving in a few minutes. Is t开发者_如何学编程here an equivalent for Mercurial, so I can run hg.mydomain.com?


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.


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.


You can try HgLab: it's a hosted Mercurial server with pull and push support, access control and Active Directory integration.


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.


Mercurial comes with a build in web interface: http://hgbook.red-bean.com/read/collaborating-with-other-people.html


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号