[PATCH] fix bug in https url handling
Alexis S. L. Carvalho
alexis at cecm.usp.br
Fri Nov 9 17:40:56 CST 2007
Thus spake Dominique Quatravaux:
> OK on: Ubuntu Gutsy i386, Python 2.5.1
> ASK on: Fedora Core 3 i386, Python 2.3.4
> OK on: CentOS 4 i386, Python 2.4.3
Ah, OK. I see it now. Looks like Python < 2.4.3 uses only the netloc
when looking up passwords.
> How about storing the password under *both* URLs?
>
> if user:
> ui.debug(_('http auth: user %s, password %s\n') %
> (user, passwd and '*' * len(passwd) or 'not set'))
> passmgr.add_password(None, self._url, user, passwd or '')
> passmgr.add_password(None, host, user, passwd or '')
>
I've pushed something like this to crew-stable and crew.
Thanks.
Alexis
More information about the Mercurial-devel
mailing list