[PATCH 1 of 3] url: extract password database from password manager

Yuya Nishihara yuya at tcha.org
Sat Jun 18 09:32:14 EDT 2016


On Tue, 14 Jun 2016 11:13:29 +0200, liscju wrote:
> # HG changeset patch
> # User liscju <piotr.listkiewicz at gmail.com>
> # Date 1465162583 -7200
> #      Sun Jun 05 23:36:23 2016 +0200
> # Node ID 5ac51055840cf0031d8407f722784ce26f152079
> # Parent  90d84e1e427a9d65aedd870cdb7283f84bb30141
> url: extract password database from password manager

> --- a/mercurial/url.py
> +++ b/mercurial/url.py
> @@ -28,13 +28,15 @@ urlerr = util.urlerr
>  urlreq = util.urlreq
>  
>  class passwordmgr(urlreq.httppasswordmgrwithdefaultrealm):
> -    def __init__(self, ui):
> -        urlreq.httppasswordmgrwithdefaultrealm.__init__(self)
> +    def __init__(self, ui, passwddb):
>          self.ui = ui
> +        self.passwddb = passwddb

Our passwordmgr becomes the adaptor to httppasswordmgrwithdefaultrealm. Does
it still need to inherit httppasswordmgrwithdefaultrealm?


More information about the Mercurial-devel mailing list