recognize user:password in URLs that include port numbers.
authorPeter Meerwald <pmeerw@pmeerw.net>
Fri, 17 Aug 2007 22:43:38 -0300
changeset 5188 942c0827dc5b
parent 5185 156f4c8a12aa
child 5189 1843098e665a
recognize user:password in URLs that include port numbers. when giving user/pwd in an URL, eg. hg pull http://user:pwd@host.com:666/hg/something, hg would still ask for user/pwd in interactive mode (or fail in non-interactive)
mercurial/httprepo.py
--- a/mercurial/httprepo.py	Fri Aug 17 00:42:22 2007 +0200
+++ b/mercurial/httprepo.py	Fri Aug 17 22:43:38 2007 -0300
@@ -253,7 +253,7 @@
         if user:
             ui.debug(_('http auth: user %s, password %s\n') %
                      (user, passwd and '*' * len(passwd) or 'not set'))
-            passmgr.add_password(None, host, user, passwd or '')
+            passmgr.add_password(None, self._url, user, passwd or '')
 
         handlers.extend((urllib2.HTTPBasicAuthHandler(passmgr),
                          httpdigestauthhandler(passmgr)))