Just use:
sudo apt-get install mercurial
It should install it in the default folder and update your environment variables correctly. then you should be able to use ‘hg’ from the command line, just like svn, although Hg is a much better source control tool.