Mercurial > hg-stable
changeset 8344:873429914ec5
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
author | Sune Foldager <cryo@cyanite.org> |
---|---|
date | Mon, 11 May 2009 07:55:13 +0200 |
parents | 6fbbb90261b1 |
children | dcebff8a25dd |
files | mercurial/url.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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'))