Mercurial is written in Python with platform independence in mind.
As a result, Mercurial is available on
OpenSolaris and others.
You can either download a binary package for the system of your choice or
build it from sources.
$ apt-get install mercurial
$ yum install mercurial
$ emerge mercurial
$ pkg install SUNWmercurial