1. TortoiseHg
  2. TortoiseHg
  3. thg

Wiki

Clone wiki

thg / CentOS

Installing on CentOS 6.3

The tip of TortoiseHg stable (post 2.7) is now mostly functional on CentOS 6.3. Use these instructions to get a source install:

# get prereq packages
yum install epel-release
yum install PyQt4-devel python-devel python-iniparse gcc gettext
yum --enablerepo=epel install qscintilla-python python-keyring python-sphinx Django

# install Mercurial from source to bootstrap
mkdir ~/repos
mkdir ~/bin
cd ~/repos
wget http://mercurial.selenic.com/release/mercurial-2.4.2.tar.gz
tar xzvf mercurial-2.4.2.tar.gz
cd mercurial-2.4.2/
make local

# now get a Mercurial clone, to stay up to date
./hg clone http://selenic.com/hg#stable ../hg
cd ../hg
make local
cd ~/bin
ln -s ~/repos/hg/hg .

# now get a TortoiseHg clone
cd ~/repos
hg clone https://bitbucket.org/tortoisehg/thg
cd thg
ln -s ../hg/mercurial/
ln -s ../hg/hgext/
cd ~/bin
ln -s ~/repos/thg/thg .

# cleanup
rm -rf ~/repos/mercurial-2.4.2/ ~/repos/mercurial-2.4.2.tar.gz

The biggest problem with CentOS 6.3 is that PyQt is a bit too old, so the reporegistry code that recovers its configuration from XML cannot work properly, so the registry will always be empty at startup, or will only contain the repository from the working directory. Patches welcome for this.

Also beware I had one XServer lockup while using the workbench full screen. The mouse disappeared and the keyboard became unresponsive. It could just be a problem on my machine, but it's something to be aware of.

I have no idea if the nautilus extension works on CentOS 6.3

Updated