This extension is currently being distributed along with Mercurial.
Ability to add shortcut to any url as url scheme (protocol).
[extensions] hgext.schemes= [schemes] p = ssh://piranha.org.ua/hg/
hg clone p://schemes/
There are predefined entries for py (python repositories), bb (bitbucket), gcode (google code).