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:
- Newer distributions of Ubuntu have a package of this extension. You can try:
$ sudo apt-get install mercurial-keyring
- If there is no package of this extension, then install the
python-setuptoolspackage if it is not already present. This provides the
easy_installprogram which is needed for the next steps.
keyringPython package using
$ sudo easy_install keyring
- Install the
$ sudo easy_install mercurial_keyring
- Enable the
mercurial_keyringpackage in Mercurial by modifying the configuration file as explained here.
Tried with: Mercurial 2.0.2 and Ubuntu 12.04.2 LTS