sharing mercurial with another user
Bob Hood
bhood2 at comcast.net
Tue Dec 25 21:44:51 UTC 2012
On 12/25/2012 2:20 PM, Dan page wrote:
> Hi,
>
> I know this maybe an easy question but suppose I set up
> a mercurial repository. How can I share it with other users?
Doubtless there are others who can provide much better answers to this, but I
can at least give you an overview...
Do you want it to be secured or unsecured?
An unsecured share can be as simple as running the "serve" command within your
repository's working directory:
$ hg serve
listening at http://<host>:8000/ (bound to *:8000)
and then making sure you have port-forwarding set up through any firewall that
might be in between your repository and the external user. You can set this
up to run automatically at boot for your operating system (for example, you
can add an entry to /etc/rc.local, or to /etc/init.d, under Debian-based Linux
distros to start it up automatically).
A secured share is considerably more complicated to set up, and way beyond a
simple email reply. It requires an SSL certificate, an Apache web server, and
the use of an hgweb.cgi file. This URL gives a very detailed description of
the process:
http://mercurial.selenic.com/wiki/HgWebDirStepByStep
Hope that at least points you down the right road.
More information about the Mercurial
mailing list