hg pull over HTTPS fails with Mercurial 3.9
Created originally on Bitbucket by pquantin (Pascal Quantin)
After updating to Mercurial 3.9 (with dulwich 0.14.1), a hg pull over HTTPS using hg-git 66336cb849b4 now gives the following backtrace:
#!python
** Unknown exception encountered with possibly-broken third-party extension hg-git
** which supports versions 3.7 of Mercurial.
** Please disable hg-git and try your action again.
** If that fixes the bug please report it to https://bitbucket.org/durin42/hg-git/issues
** Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:24:40) [MSC v.1500 64 bit (AMD64)]
** Mercurial Distributed SCM (version 3.9)
** Extensions loaded: hg-git
Traceback (most recent call last):
File "hg", line 45, in <module>
File "mercurial\dispatch.pyc", line 59, in run
File "mercurial\dispatch.pyc", line 125, in dispatch
File "mercurial\dispatch.pyc", line 204, in _runcatch
File "mercurial\dispatch.pyc", line 880, in _dispatch
File "mercurial\dispatch.pyc", line 637, in runcommand
File "mercurial\dispatch.pyc", line 1010, in _runcommand
File "mercurial\dispatch.pyc", line 971, in checkargs
File "mercurial\dispatch.pyc", line 877, in <lambda>
File "mercurial\util.pyc", line 1036, in check
File "mercurial\commands.pyc", line 5841, in pull
File "mercurial\extensions.pyc", line 210, in closure
File "d:/Dev/hg-git\hggit\util.py", line 52, in inner
return f(*args, **kwargs)
File "d:/Dev/hg-git\hggit\__init__.py", line 331, in exchangepull
pullop.cgresult = repo.githandler.fetch(remote.path, heads)
File "d:/Dev/hg-git\hggit\git_handler.py", line 260, in fetch
refs = self.fetch_pack(remote, heads)
File "d:/Dev/hg-git\hggit\git_handler.py", line 1118, in fetch_pack
localclient, path = self.get_transport_and_path(remote_name)
File "d:/Dev/hg-git\hggit\git_handler.py", line 1630, in get_transport_and_path
auth = urllib2.HTTPBasicAuthHandler(url.passwordmgr(self.ui))
TypeError: __init__() takes exactly 3 arguments (2 given)