How to install Mercurial Keyring extension on Ubuntu

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 the easy_install program which is needed for the next steps.

  • Install the keyring Python package using easy_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

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s