url: fix bug in passwordmgr related to auth configuration
authorSune Foldager <cryo@cyanite.org>
Mon, 11 May 2009 07:55:13 +0200
changeset 8344 873429914ec5
parent 8343 6fbbb90261b1
child 8345 dcebff8a25dd
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
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'))