Mercurial > hg-stable
changeset 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 | 156f4c8a12aa |
children | 1843098e665a |
files | mercurial/httprepo.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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)))