Thursday, 3 April 2014

How do I set my username and password for Mercurial (no more prompting please)?

My new project uses Mercurial as the source control. The daily pull of data becomes a little tedious when you are constantly prompted for credentials. I have add a few simple settings to resolve the (annoying) problem.

Open the workbench, right click on the repository and select settings. The name of the settings file is displayed at the top of the repository settings page.

My location was c:\MyProject\.hg\hgrc

Now, open this file in your favourite text editor and add a few simple entries:

username=Richard Leeman <>

repo.username=Richard Leeman

This is not the most secure way to store the credentials, but it certainly beats having to enter them every time.

No comments:

Post a comment