Turns out the issue here was that I was using the URL for the repository displayed on my Bitbucket repository's page, which includes the username in front of the bitbucket domain name, so it ended up looking like https://myusername@bitbucket.org/myusername/myrepo
.
Apparently, when the username is provided in this way, it ignores what's in the [auth]
section. I just changed the URL in the hgrc for my local clone of the repo, and it picked up the [auth]
section stuff just fine.
Apologies for not including this detail in the question.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…