I wanted to install the hg-git
extension with python pip but I'm not sure if I should use pip
(Python2) or pip3
(Python3).
hg version
gives this:
$ hg version
Mercurial Distributed SCM (version 4.8.2)
(see https://mercurial-scm.org for more information)
Copyright (C) 2005-2018 Matt Mackall and others
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Enabled extensions:
fetch internal
graphlog internal
histedit internal
strip internal
mq internal
purge internal
rebase internal
record internal
$
I first tried pip3 install hg-git
and it did not work after installation. Then I used pip
and it worked. Just curious how to check the Mercuial's Python version in the first place.
Mercurial has a rather helpful command that allows you to inspect and verify the installation: