Updating mercurial in Ubuntu 14.04 LTS
Angel Ezquerra
angel.ezquerra at gmail.com
Tue May 20 10:04:04 UTC 2014
On Sun, May 18, 2014 at 12:18 PM, Yuya Nishihara <yuya at tcha.org> wrote:
> On Sun, 18 May 2014 12:00:08 +0200, Angel Ezquerra wrote:
>> 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?
>
> Probably you have old mercurial libs somewhere in your PYTHONPATH.
> Try
>
> $ python -c 'import mercurial; print mercurial.__file__'
> and
> $ hg debuginstall
>
> Regards,
Yes, that was it thanks! :-D
I did "sudo pip install --upgrade mercurial" and everything works fine now.
I'd like to understand this a little bit better though. How comes that
mercurial 3.0 can be installed but when you execute it it runs the
modules on the PYTHONPATH? Doesn't the Linux mercurial install come
with its own python environment as I think it does on windows?
Thanks!
Angel
More information about the Mercurial
mailing list