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-setuptools
package if it is not already present. This provides theeasy_install
program which is needed for the next steps. -
Install the
keyring
Python package usingeasy_install
:
$ sudo easy_install keyring
- Install the
mercurial_keyring
Python package:
$ sudo easy_install mercurial_keyring
- Enable the
mercurial_keyring
package in Mercurial by modifying the configuration file as explained here.
Tried with: Mercurial 2.0.2 and Ubuntu 12.04.2 LTS
Advertisements