Failed to authenticate with BasicAuth

Create issue
Issue #289 new
Florent Le Coz created an issue

What I did: hg clone http://some.domain.com/svn/project […] hg push

and I got the attached traceback.

Setting [hgsubversion] username = user password = passwd

didn’t change anything.

BUT changing the path from http://some.domain.com/svn/project to http://user:passwd@some.domain.com/svn/project

did the trick, and the push was successful.

hg subversion should prompt for these crendentials if not provided, or use them if they are provided in the conf file (in the [hgsubversion] section, as username and password values).

Or at least it should not traceback but explain how to put the credentials in the right place.

Comments (2)

  1. Former user Account Deleted

    I just ran into this one myself; I have a svn repo that I have already cloned using hgsubversion, when I attempted to pull recent changes I ran into an authorization failure and traceback. path is: default=svn+https://username@server.domain.com:port/path/to/project

    Just to verify, I added the password (default=svn+https://username:pwd@server.domain.com:port/path/to/project ) and re-attempted the pull: it worked fine.

    I then removed the pwd, assuming that it would fail again, but it succeeded (pwd must get cached when the pull is executed).

  2. Log in to comment