Thursday September 02, 2010 at 21:05

Mercurial keyring extension in Windows

After trying various ways to get the mercurial_keyring extension installed in Windows (via easy_install), i finally found a way. The solution is a bit counter-intuitive if you’re like me and only wanted to use the command line tool (hg.exe). So, the way to get this to work is to simply install TortoiseHG (uninstall any version of Mercurial you might have installed). The installer will automatically add hg.exe to your PATH env variable. Once installed go to TortoiseHG’s global settings menu, click Extensions and click the mercurial_keyring checkbox, click apply and everything should be well.

TortoiseHG will automatically add the necessary line to the mercurial.ini file in your user folder:

[extensions]
mercurial_keyring = 

The first time you do an hg command that hits the shared repository (hg incoming, hg pull, hg push, etc) you will be asked for your password, after that it will be saved and you will not need to enter your credentials again, ever!

For more info visit: http://pypi.python.org/pypi/mercurial_keyring

Comments (View)
blog comments powered by Disqus