Skip to content

glaure/tortoisehg4ubuntu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tortoisehg4ubuntu

tortoisehg for Ubuntu 20.04.

Ubuntu packages to test are available in the "Releases" section.

The latest 5.9.1 package is self-contained and does not need additional steps.

sudo apt install ./tortoisehg_5.9.1-glaure_amd64.deb

Note: You may have to remove a current mercurial installation. This package only works with mercurial 5.9.1. The dependency is automatically resolved by pypi/pip during the installation.

Downloads

Github All Releases

Inspired by:

https://askubuntu.com/questions/1232173/how-to-install-the-tortoisehg-in-ubuntu20-04

Previous Information

Instructions

Install all necessary build prerequisites

sudo ./bootstrap.sh

Build thg (tortoisehg)

./build.sh

Manual Instructions

If you have trust issues to run the script as root, refer to the manual installation steps:

I do not have a working package or snap. But using these instructions, it is rather easy to get tortoisehg working from source.

Check that python --version returns a Python 3 interpreter. If not, you have to change the symlink /usr/bin/python to /usr/bin/python3.

OK:

$ python --version
Python 3.8.2

Not OK:

$ python --version
Python 2.7.18rc1

Change the symlink:

$ sudo rm /usr/bin/python
$ sudo ln -s /usr/bin/python3 /usr/bin/python

pip3 is needed to fulfill all the build dependencies.

sudo apt install python3-pip build-essential

Change into thg directory.

cd thg

Install PyQt5.

pip3 install pyqt5

Install mercurial.

pip3 install mercurial==5.4

Install Qscintilla.

pip3 install qscintilla
sudo apt install pyqt5.qsci-dev
sudo apt install python3-pyqt5.qsci

Clone tortoisehg repository.

hg clone https://foss.heptapod.net/mercurial/tortoisehg/thg
hg revert -r 5.4.2 --all

Lets build tortoisehg for inplace usage.

make local

Start tortoisehg.

./thg

I got tortoisehg working on multiple different Ubuntu 20.04 installations using this recipe.