comparison mercurial/httprepo.py @ 5196:86e95b93559a

Merge with crew-stable
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Fri, 17 Aug 2007 23:20:13 -0300
parents 664a1c312972 942c0827dc5b
children b534c502bfb3
comparison
equal deleted inserted replaced
5195:33015dac5df5 5196:86e95b93559a
251 251
252 passmgr = passwordmgr(ui) 252 passmgr = passwordmgr(ui)
253 if user: 253 if user:
254 ui.debug(_('http auth: user %s, password %s\n') % 254 ui.debug(_('http auth: user %s, password %s\n') %
255 (user, passwd and '*' * len(passwd) or 'not set')) 255 (user, passwd and '*' * len(passwd) or 'not set'))
256 passmgr.add_password(None, host, user, passwd or '') 256 passmgr.add_password(None, self._url, user, passwd or '')
257 257
258 handlers.extend((urllib2.HTTPBasicAuthHandler(passmgr), 258 handlers.extend((urllib2.HTTPBasicAuthHandler(passmgr),
259 httpdigestauthhandler(passmgr))) 259 httpdigestauthhandler(passmgr)))
260 opener = urllib2.build_opener(*handlers) 260 opener = urllib2.build_opener(*handlers)
261 261