tags:

views:

20

answers:

1

I'm trying to install Mercurial on a server of something, or even a Linux box, and have users in an intranet log in to use as a repo for them.

This is just an academic exercise I'm pursuing out of curiosity. I'll be using VMWare to simulate a lan.

What would be the best OS to host the Mercurial software on? Thanks!

+1  A: 

Host Linux and use ssh:// for your transport (the other option is HTTP). With that set up you need to run no full-time server at all and need to do no installation or configuration past that of the mercurial software itself. Each "user" will need its own account on that linux box in in question, and all access controls are provided by the underlying operating system's file permissions.

Other options, including hg-ssh and hgweb are available and descried on the Publishing Repositories wiki page, but for the basic setup you're describing you can just use ssh and there's nothing more to do:

Creating a repository remotely:

$ hg init ssh://user@yourhost//path/to/repo

Cloning:

$ hg clone ssh://user@yourhost//path/to/repo

Pushing:

$ hg push ssh://user@yourhost//path/to/repo

Pulling:

$ hg pull ssh://user@yourhost//path/to/repo

Where `//path/to/repo (notice there are two sets of double slashes) is any path on the "server" system where the user can read and write.

Ry4an