auth in local hgrc file is not working for some bitbucket repos

Uwe Brauer oub at mat.ucm.es
Thu Nov 15 13:49:02 UTC 2018


>>> "David" == David Demelier <markand at malikania.fr> writes:

   > Le 15/11/2018 à 00:04, Uwe Brauer a écrit :
   >> [auth]
   >> repo.prefix = https://user@bitbucket.org/user/repo

   > Please try without user@ and tell me if it works.

I commented out the user, then the following appears

comparing with https://kalthad@bitbucket.org/kalthad/contflowmap-einstein
http authorization required for https://bitbucket.org/kalthad/contflowmap-einstein
realm: Bitbucket.org HTTP
user: kalthad
password:  


So he somehow «knows» the user, which is odd.

Even more absurd

hg config | grep pass
auth.repo.password=mysecrectpassword

So hg *knows* the password.

What is up here. 

I run 

 hg out --debug

And obtain 

all_dirs: _parse called with args ['out', '--debug']
all_dirs: _parse found another command outgoing
comparing with https://kalthad@bitbucket.org/kalthad/contflowmap-einstein
using https://bitbucket.org/kalthad/contflowmap-einstein
http auth: user kalthad, password not set


Very very odd.


   > That is:

   >     repo.prefix = https://bitbucket.org/user/repo

   > Or is user@ different than repo.username? I don't remember bitbucket
no it is not
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5025 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20181115/1df185a6/attachment.p7s>


More information about the Mercurial mailing list