12

I've tried TortoiseHG from the repositories, but it wasn't working at all.

Bruno Pereira
  • 73,643
Queops
  • 255

4 Answers4

20

hg view is installed as part of the mercurial package, but not enabled by default to keep the package from depending on the tk toolkit. Install tk8.5, and the add the following to your "$HOME/.hgrc" file:

[extensions]
hgk=

Launch by running hg view in the repository folder. alt text

9

Add the following PPAs to your Software Sources, instructions are at the link endpoints:

https://launchpad.net/~tortoisehg-ppa/+archive/releases Launchpad logo

https://launchpad.net/~mercurial-ppa/+archive/releases Launchpad logo

Or do it via the command line.

ppa:tortoisehg-ppa/releases Launchpad logo (Click here for instructions on using PPAs.)

ppa:mercurial-ppa/releases Launchpad logo (Click here for instructions on using PPAs.)

$ sudo apt-add-repository ppa:tortoisehg-ppa/releases
$ sudo apt-add-repository ppa:mercurial-ppa/releases

Install tortoisehg, and tortoisehg-nautilus if you want nautilus integration.

$ sudo apt-get install tortoisehg tortoisehg-nautilus

Use hgtk as though it were the usual hg command to get a GUI interface for each command (e.g. hgtk status), or use the interface provided in nautilus if you installed the requisite package.

Matt Joiner
  • 1,607
  • Nice handy PPAs – Queops Nov 06 '10 at 23:23
  • When I try to install tortoisehg I got the following message : The following packages have unmet dependencies: tortoisehg : Depends: mercurial (< 2.5~) but 2.5-0ppa1~precise1 is to be installed Recommends: python-iniparse but it is not going to be installed E: Unable to correct problems, you have held broken packages. – magister Feb 07 '13 at 16:45
  • 1
    Doing this works fine: sudo apt-get install tortoisehg tortoisehg-nautilus

    No need for PPAs anymore (Ubuntu 15)

    – Jonathan Jun 25 '15 at 19:10
2

meld does a pretty decent job. Just install it like this:

sudo apt-get install meld

And run it with:

meld

Then select "Version control view" and point it at the directory with your repository. It will show you all the changed files and you can view a visual diff by double clicking the file.

Peter
  • 381
0

sudo apt-get install tortoisehg tortoisehg-nautilus

Then just nautilus -q then browse to your project in the file browser

Jonathan
  • 3,904