Question

I am using Tortoise Hg for managing my Mercurial repositories (Clone,Push etc.). But I am not clear about how Tortoise Hg authenticates users. If I Clone or Push a protected repository, Tortoise Hg will ask for user credentials. If I enter the credentials, how is Tortoise hg authenticating the user (I mean the background process) ? How can I create a user in Tortoise Hg like in Tortoise SVN. Anybody knows the answer please help.

Was it helpful?

Solution

You cannot "create a user in TortoiseHG".

THG just asks you what server asked, nothing more. And it doesn't persist it anywhere unless you've done some additional steps.

If I enter the credentials, how is Tortoise hg authenticating the user (I mean the background process) ?

THG doesn't authenticate your user, it just sends the credentials as is-to the server.

In your case it's just a basic authentication, and if you want to persist it - you can either hardcode it in [auth] section of your hgrc (either repository level one, or global) or use mercurial_keyring extension. The latter is preferred.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top