# HG changeset patch # User Sune Foldager # Date 1242021313 -7200 # Node ID 873429914ec5f477519761ea9165c7a2f5a4c0c0 # Parent 6fbbb90261b1a3f965559c7cc352b017bf30deba 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 diff -r 6fbbb90261b1 -r 873429914ec5 mercurial/url.py --- 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'))