mercurial

Introduction

http://mercurial.selenic.com/
Mercurial is a free, distributed source control management tool. It efficiently handles projects of any size and offers an easy and intuitive interface

Usage

module load mercurial/2.4

Installation

Building the documentation for Mercurial 2.4 requires docutils and bzip2. Before we build and install Mercurial, we need to install docutils. 

module load python/2.7.1-shared

bzip2:
======

cd /tmp
tar xpzf bzip2-1.0.6.tar.gz
cd bzip2-1.0.6
cd /tmp/bzip2-1.0.6
make
make clean -f Makefile-libbz2_so
make -f Makefile-libbz2_so
make install PREFIX=/sw/python/2.7.1-shared/
recompile python:
cd /sw/python/2.7.1-shared/src/Python-2.7.1
./configure --enable-shared --prefix=/sw/python/2.7.1-shared/ 2>&1 | tee log.configure.Python
make -j8 2>&1 | tee log.makej8
make install 2>&1 | tee log.make_install_python

docutils
========


cd /tmp
wget http://prdownloads.sourceforge.net/docutils/docutils-0.9.1.tar.gz?download
 tar -zxvf docutils-0.9.1.tar.gz
cd /tmp/docutils-0.9.1
 ./setup.py install


mecurial
========

mkdir -p /sw/mercurial/2.4/src
cd /sw/mercurial/2.4/src
tar -zxvf mercurial-2.4-rc.tar.gz

cd /sw/mercurial/2.4/src/mercurial-2.4-rc
mv * /sw/mercurial/2.4/
cd /sw/mercurial/2.4
make all >make_all_log.txt 2>&1
make install >make_install_log.txt 2>&1
hg debuginstall  >make_log.txt 2>&1
hg 


 $ make local      # build for inplace usage
 $ ./hg --version  # should show the latest version

Reference