Can't push to git repo with 0.8.11
Created originally on Bitbucket by kharlamov NA (kharlamov)
I have hg-git 0.8.11, dulwich 0.19.2, and python 2.7.15 on macOS 10.13.5.
When I try to git push
, it's bombing out with the following
** Unknown exception encountered with possibly-broken third-party extension hggit
** which supports versions 4.5 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.15 (default, May 1 2018, 22:40:11) [GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.1)]
** Mercurial Distributed SCM (version 4.6)
** Extensions loaded: hggit
Traceback (most recent call last):
File "/Users/kharlamov/bin/hg", line 41, in <module>
dispatch.run()
File "/opt/py/lib/python2.7/site-packages/mercurial/dispatch.py", line 90, in run
status = (dispatch(req) or 0)
File "/opt/py/lib/python2.7/site-packages/mercurial/dispatch.py", line 210, in dispatch
ret = _runcatch(req)
File "/opt/py/lib/python2.7/site-packages/mercurial/dispatch.py", line 351, in _runcatch
return _callcatch(ui, _runcatchfunc)
File "/opt/py/lib/python2.7/site-packages/mercurial/dispatch.py", line 359, in _callcatch
return scmutil.callcatch(ui, func)
File "/opt/py/lib/python2.7/site-packages/mercurial/scmutil.py", line 160, in callcatch
return func()
File "/opt/py/lib/python2.7/site-packages/mercurial/dispatch.py", line 341, in _runcatchfunc
return _dispatch(req)
File "/opt/py/lib/python2.7/site-packages/mercurial/dispatch.py", line 971, in _dispatch
cmdpats, cmdoptions)
File "/opt/py/lib/python2.7/site-packages/mercurial/dispatch.py", line 727, in runcommand
ret = _runcommand(ui, options, cmd, d)
File "/opt/py/lib/python2.7/site-packages/mercurial/dispatch.py", line 979, in _runcommand
return cmdfunc()
File "/opt/py/lib/python2.7/site-packages/mercurial/dispatch.py", line 968, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
File "/opt/py/lib/python2.7/site-packages/mercurial/util.py", line 1553, in check
return func(*args, **kwargs)
File "/opt/py/lib/python2.7/site-packages/mercurial/commands.py", line 4181, in push
other = hg.peer(repo, opts, dest)
File "/opt/py/lib/python2.7/site-packages/hggit/__init__.py", line 325, in peer
newpeer = orig(uiorrepo, *args, **opts)
File "/opt/py/lib/python2.7/site-packages/mercurial/hg.py", line 189, in peer
return _peerorrepo(rui, path, create, intents=intents).peer()
File "/opt/py/lib/python2.7/site-packages/mercurial/hg.py", line 163, in _peerorrepo
obj = _peerlookup(path).instance(ui, path, create, intents=intents)
TypeError: __init__() got an unexpected keyword argument 'intents'
Downgrading to the combination of dulwich 0.18.6 and mercurial 4.5 returns behavior to normal.