url: fix bug in passwordmgr related to auth configuration
Usernames given as part of the URL would be ignored.
This bug was introduced in
89c80c3dc5842d609e9ba13f08fd2cf7f127c25a
--- a/mercurial/url.py Fri May 08 15:14:04 2009 +0200
+++ b/mercurial/url.py Mon May 11 07:55:13 2009 +0200
@@ -108,7 +108,8 @@
self._writedebug(user, passwd)
return (user, passwd)
- user, passwd = self._readauthtoken(authuri)
+ if not user:
+ user, passwd = self._readauthtoken(authuri)
if not user or not passwd:
if not self.ui.interactive():
raise util.Abort(_('http authorization required'))