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)
--- 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)))