Updating mercurial in Ubuntu 14.04 LTS

Angel Ezquerra angel.ezquerra at gmail.com
Sun May 18 10:00:08 UTC 2014


On Sun, May 18, 2014 at 9:51 AM, Mathieu Courtois
<mathieu.courtois at gmail.com> wrote:
> Hi,
>
> Your problem is not with mercurial but tortoisehg.
> I suggest you to look at the TortoiseHg PPA :
> https://launchpad.net/~tortoisehg-ppa/
>
> There is not yet any update for Trusty now.
> If you need absolutly the last hg version, build thg from the source.
>
> MC
>
>
>
>
>
> 2014-05-18 0:52 GMT+02:00 Adrian Klaver <adrian.klaver at aklaver.com>:
>
>> On 05/17/2014 03:14 PM, Angel Ezquerra wrote:
>>>
>>> Hi,
>>>
>>> I recently upgraded my Linux installation to Ubuntu 14.04. Since the
>>> update I can no longer run TortoiseHg. It seems that the mercurial
>>> that can be found on /usr/bin/hg is at version 2.6.2 while the
>>> TortoiseHg package that is installed through the Ubuntu software
>>> center needs mercurial 2.7 or later.
>>>
>>> I tried doing "apt-get install mercurial" to install a newer version
>>> but it tells me that the mercurial package is up to date. I think that
>>> the mercurial ppa packages that I am using is the "stable-snapshot"
>>> one (http://ppa.launchpad.net/mercurial-ppa/stable-snapshots/ubuntu).
>>>
>>> Any ideas?
>>
>>
>> Well according to here:
>>
>> http://packages.ubuntu.com/search?keywords=mercurial
>>
>> Mercurial 2.8.2 is the default for this version of Ubuntu.
>>
>> Looking here:
>>
>> https://launchpad.net/~mercurial-ppa/+archive/releases
>>
>> and following the links I do not see anything about 14.04.
>>
>> Seems the thing to do would be to use the regular repo for the
>> distribution not the PPA.
>>
>> Or switch to this PPA which has even later versions:
>>
>> https://launchpad.net/~jacob/+archive/hg

This is quite odd. I did:

    $ which hg
    /usr/bin/hg
    $hg version
    Mercurial Distributed SCM (version 2.6.2+72-b90ae5d9e9c7)
    ...

So it seems mercurial was version 2.6.2.
Then I did:

    $ sudo apt-get purge --remove mercurial
    ...
    Removing mercurial-common (2.8.2-1ubuntu1) ...
    ...

So this told me that it was removing mercurial 2.8.2 even though I had
mercurial 2.6.2?

    $ which hg

The result was empty. So it seems that mercurial was uninstalled.

Then I did:
    $ sudo apt-get autoremove
    $ sudo add-apt-repository ppa:jacob/hg
    $ sudo apt-get update
    $ sudo apt-get install mercurial
    ...
    Setting up mercurial (3.0-0~14.04~ppa0) ...
    ...

    $ which hg
    /usr/bin/hg
    $ hg version
    Mercurial Distributed SCM (version 2.6.2+72-b90ae5d9e9c7)

Wait, what? How did I get mercurial 2.6.2 back?
I guess that I have mercurial 2.6.2 installed somewhere. I did:

    $ sudo find / -name hg
    /home/angel/repositories/hg
    /home/angel/repositories/hg/hg
    /home/angel/repositories/hg/build/scripts-2.7/hg
    /home/angel/repositories/hg-clone/hg
    /home/angel/Dropbox/repositories/hg
    /usr/bin/hg

All those others are clones of the mercurial repo, and none of them
are on the path.

Do you guys have any ideas?

Thanks,

Angel



More information about the Mercurial mailing list