diff -r 2c019aac6b99 -r fea71f66ebff mercurial/url.py --- a/mercurial/url.py Sun Jun 05 23:36:23 2016 +0200 +++ b/mercurial/url.py Thu Jun 09 11:41:36 2016 +0200 @@ -365,7 +365,7 @@ urlreq.httpshandler.__init__(self) self.ui = ui self.pwmgr = passwordmgr(self.ui, - urlreq.httppasswordmgrwithdefaultrealm()) + self.ui.httppasswordmgrdb) def _start_transaction(self, h, req): _generic_start_transaction(self, h, req) @@ -482,7 +482,7 @@ handlers = [ httpconnectionmod.http2handler( ui, - passwordmgr(ui, urlreq.httppasswordmgrwithdefaultrealm())) + passwordmgr(ui, ui.httppasswordmgrdb)) ] else: handlers = [httphandler()] @@ -491,7 +491,7 @@ handlers.append(proxyhandler(ui)) - passmgr = passwordmgr(ui, urlreq.httppasswordmgrwithdefaultrealm()) + passmgr = passwordmgr(ui, ui.httppasswordmgrdb) if authinfo is not None: passmgr.add_password(*authinfo) user, passwd = authinfo[2:4]