Friday, June 20, 2014

Configure TortoiseHg to Remember Your Credential

I should write about this two years ago...
I'm migrating my project to another repository. And if you are working with Mercurial and using TortoiseHg, you must be know this annoying prompt:


What you need to do, is to save your credential:

1) Right click on your repository and click Settings

2) Edit File

3) Write your credential

Yes, like this:
[paths]
bitbucket = https://bitbucket.org/teodesson/dallanube-sims

[auth]
bitbucket.prefix = bitbucket.org
bitbucket.username = teodesson
bitbucket.password = <password>

Save, and ta-da! 

Update:
I got this prompt when trying to detect/push outgoing changes


Solve it by changes "bitbucket" to default
[paths]
default = https://bitbucket.org/teodesson/dallanube-sims

[auth]
default.prefix = bitbucket.org
default.username = teodesson
default.password = <password>

Again save, and another ta-da!

Reference:
https://www.swiftsoftwaregroup.com/how-to-configure-tortoisehg-to-remember-your-username-and-password/