The Mercurial Keyring extension eliminates the pain of having to authenticate yourself with username and password every time you need to push or pull from repositories using the HTTPS protocol. Enabling this extension on Windows is pretty easy with TortoiseHg.
To install and enable this extension on Ubuntu:
$ sudo apt-get install mercurial-keyring
If there is no package of this extension, then install the
python-setuptools package if it is not already present. This provides the
easy_install program which is needed for the next steps.
keyring Python package using
$ sudo easy_install keyring
$ sudo easy_install mercurial_keyring
mercurial_keyringpackage in Mercurial by modifying the configuration file as explained here.
Tried with: Mercurial 2.0.2 and Ubuntu 12.04.2 LTS