Wednesday, October 7, 2009

How to serve your hg repository using http

Mercurial (hg, get it? ;) is one of a number of distributed version control systems. So this is an easy way to host an hg repository. So from the command line, cd into the repository you want to host and simply type:


hg serve

The repository will be located at http://localhost:8000/. If you want to access it from another computer you'll have to use the IP address or host address like so:

hg clone http://yourpc.example.net:8000/

Very cool.

No comments: