hg-git crash
Neal Becker
ndbecker2 at gmail.com
Sat Mar 18 20:46:12 UTC 2017
After doing hg clone of a git repo, I tried hg pull -u and got:
hg pull -u https://github.com/pybind/pybind11.git
pulling from https://github.com/pybind/pybind11.git
** Unknown exception encountered with possibly-broken third-party extension
hggit
** which supports versions 3.7 of Mercurial.
** Please disable hggit and try your action again.
** If that fixes the bug please report it to
https://bitbucket.org/durin42/hg-git/issues
** Python 2.7.13 (default, Jan 12 2017, 17:59:37) [GCC 6.3.1 20161221 (Red
Hat 6.3.1-1)]
** Mercurial Distributed SCM (version 4.1)
** Extensions loaded: hgk, rebase, convert, hggit, evolve, transplant,
shelve
Traceback (most recent call last):
File "/usr/bin/hg", line 45, in <module>
mercurial.dispatch.run()
File "/usr/lib64/python2.7/site-packages/mercurial/dispatch.py", line 63,
in run
sys.exit((dispatch(request(pycompat.sysargv[1:])) or 0) & 255)
File "/usr/lib64/python2.7/site-packages/mercurial/dispatch.py", line 129,
in dispatch
ret = _runcatch(req)
File "/usr/lib64/python2.7/site-packages/mercurial/dispatch.py", line 219,
in _runcatch
return callcatch(ui, _runcatchfunc)
File "/usr/lib64/python2.7/site-packages/mercurial/dispatch.py", line 227,
in callcatch
return scmutil.callcatch(ui, func)
File "/usr/lib64/python2.7/site-packages/mercurial/scmutil.py", line 152,
in callcatch
return func()
File "/usr/lib64/python2.7/site-packages/mercurial/dispatch.py", line 208,
in _runcatchfunc
return _dispatch(req)
File "/usr/lib64/python2.7/site-packages/mercurial/dispatch.py", line 811,
in _dispatch
cmdpats, cmdoptions)
File "/usr/lib64/python2.7/site-packages/mercurial/dispatch.py", line 563,
in runcommand
ret = _runcommand(ui, options, cmd, d)
File "/usr/lib64/python2.7/site-packages/mercurial/dispatch.py", line 819,
in _runcommand
return cmdfunc()
File "/usr/lib64/python2.7/site-packages/mercurial/dispatch.py", line 808,
in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
File "/usr/lib64/python2.7/site-packages/mercurial/util.py", line 1051, in
check
return func(*args, **kwargs)
File "/usr/lib64/python2.7/site-packages/mercurial/extensions.py", line
223, in closure
return func(*(args + a), **kw)
File "/usr/lib64/python2.7/site-packages/mercurial/util.py", line 1051, in
check
return func(*args, **kwargs)
File "/home/nbecker/evolve/hgext/evolve.py", line 732, in warnobserrors
ret = orig(ui, repo, *args, **kwargs)
File "/usr/lib64/python2.7/site-packages/mercurial/util.py", line 1051, in
check
return func(*args, **kwargs)
File "/usr/lib64/python2.7/site-packages/mercurial/extensions.py", line
223, in closure
return func(*(args + a), **kw)
File "/usr/lib64/python2.7/site-packages/mercurial/util.py", line 1051, in
check
return func(*args, **kwargs)
File "/home/nbecker/evolve/hgext/evolve.py", line 704, in
wrapmayobsoletewc
res = origfn(ui, repo, *args, **opts)
File "/usr/lib64/python2.7/site-packages/mercurial/util.py", line 1051, in
check
return func(*args, **kwargs)
File "/usr/lib64/python2.7/site-packages/mercurial/extensions.py", line
223, in closure
return func(*(args + a), **kw)
File "/usr/lib64/python2.7/site-packages/mercurial/util.py", line 1051, in
check
return func(*args, **kwargs)
File "/usr/lib64/python2.7/site-packages/hgext/rebase.py", line 1362, in
pullrebase
ret = orig(ui, repo, *args, **opts)
File "/usr/lib64/python2.7/site-packages/mercurial/util.py", line 1051, in
check
return func(*args, **kwargs)
File "/usr/lib64/python2.7/site-packages/mercurial/commands.py", line
5161, in pull
opargs=pullopargs).cgresult
File "/usr/lib64/python2.7/site-packages/mercurial/extensions.py", line
223, in closure
return func(*(args + a), **kw)
File "/usr/lib/python2.7/site-packages/hggit/util.py", line 52, in inner
return f(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/hggit/__init__.py", line 331, in
exchangepull
pullop.cgresult = repo.githandler.fetch(remote.path, heads)
File "/usr/lib/python2.7/site-packages/hggit/git_handler.py", line 260, in
fetch
refs = self.fetch_pack(remote, heads)
File "/usr/lib/python2.7/site-packages/hggit/git_handler.py", line 1118,
in fetch_pack
localclient, path = self.get_transport_and_path(remote_name)
File "/usr/lib/python2.7/site-packages/hggit/git_handler.py", line 1617,
in get_transport_and_path
auth = urllib2.HTTPBasicAuthHandler(url.passwordmgr(self.ui))
TypeError: __init__() takes exactly 3 arguments (2 given)
More information about the Mercurial
mailing list