Mercurial on Site5

From Julian Yap

Site5 provides Mercurial access via SSH. These are my notes on getting it working and basic usage. Mercurial is a fast, lightweight Source Control Management system designed for efficient handling of very large distributed projects. I use for most of my latest projects.

Site5 is my current Web hosting provider. I highly recommend them.

If you would like to consider joining Site5, please click on my affiliate link here.

Contents

Prerequisites and Site5 specific information

  • Request to Site5 support that they add you to the 'trusted' group. This will allow you to use programs such as wget and especially gcc.
  • Request to Site5 support that they change your default shell to Bash.

Download and unpack Mercurial

Download the latest version of Mercurial.

$ export VERSION=1.4.2
$ wget http://www.selenic.com/mercurial/release/mercurial-$VERSION.tar.gz

Unpack the source

$ tar zxvf mercurial-$VERSION.tar.gz
$ cd mercurial-$VERSION/

Install in your home directory

This will install to ~/bin and ~/lib directories.

$ python setup.py install --home=~

Add these lines to your ~/.bashrc file:

export PYTHONPATH=${HOME}/lib/python
export PATH=${HOME}/bin:$PATH

Testing the new install

$ hg

Future

Links