Mercurial > public > mercurial-scm > hg-stable
diff mercurial/httprepo.py @ 5188:942c0827dc5b
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)
author | Peter Meerwald <pmeerw@pmeerw.net> |
---|---|
date | Fri, 17 Aug 2007 22:43:38 -0300 |
parents | 167c422c745f |
children | 86e95b93559a 6e6a00a7bf75 |
line wrap: on
line diff
--- 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)))