How do I run a Mercurial server?
Asked Answered
H

7

20

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?

Homeric answered 11/4, 2010 at 18:22 Comment(1)
possible duplicate of https://mcmap.net/q/268802/-mercurial-quot-server-quotCrim
D
6

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.

Doctrinal answered 12/9, 2010 at 21:51 Comment(0)
C
10

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.

Contagion answered 12/4, 2010 at 1:53 Comment(1)
The link is broken - it's been moved to mercurial-scm.org/wiki/PublishingRepositoriesTamera
D
6

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.

Doctrinal answered 12/9, 2010 at 21:51 Comment(0)
P
4

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

Potvaliant answered 10/1, 2013 at 10:31 Comment(1)
It would probably be a great product - if I had a budget for it. :)Eulaeulachon
G
3

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.

Goodyear answered 11/4, 2010 at 18:41 Comment(1)
The link is broken - it's been moved to mercurial-scm.org/wiki/PublishingRepositoriesTamera
S
1

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.

Sharl answered 24/10, 2020 at 6:10 Comment(0)
V
1

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.

Vedic answered 5/3, 2023 at 4:30 Comment(0)
P
0

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

Philbert answered 11/4, 2010 at 18:36 Comment(1)
That's hg serve, but it's suitable only for a quick "pull my changes" exchange, not setting up a public facing website.Contagion

© 2022 - 2024 — McMap. All rights reserved.