Unable to clone with Mercurial 5.1
Created originally on Bitbucket by Anonymous
On Mac OS X, I get the following when trying to clone a git repo:
#!bash
$ hg clone git+ssh://.../.git
** Unknown exception encountered with possibly-broken third-party extension hggit
** which supports versions 4.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.16 (default, Jun 19 2019, 07:40:37) [GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.46.4)]
** Mercurial Distributed SCM (version 5.1)
** Extensions loaded: hggit
Traceback (most recent call last):
File "/usr/local/bin/hg", line 43, in <module>
dispatch.run()
File "/usr/local/Cellar/mercurial/5.1/lib/python2.7/site-packages/mercurial/dispatch.py", line 99, in run
status = dispatch(req)
File "/usr/local/Cellar/mercurial/5.1/lib/python2.7/site-packages/mercurial/dispatch.py", line 225, in dispatch
ret = _runcatch(req) or 0
File "/usr/local/Cellar/mercurial/5.1/lib/python2.7/site-packages/mercurial/dispatch.py", line 376, in _runcatch
return _callcatch(ui, _runcatchfunc)
File "/usr/local/Cellar/mercurial/5.1/lib/python2.7/site-packages/mercurial/dispatch.py", line 384, in _callcatch
return scmutil.callcatch(ui, func)
File "/usr/local/Cellar/mercurial/5.1/lib/python2.7/site-packages/mercurial/scmutil.py", line 167, in callcatch
return func()
File "/usr/local/Cellar/mercurial/5.1/lib/python2.7/site-packages/mercurial/dispatch.py", line 367, in _runcatchfunc
return _dispatch(req)
File "/usr/local/Cellar/mercurial/5.1/lib/python2.7/site-packages/mercurial/dispatch.py", line 1021, in _dispatch
cmdpats, cmdoptions)
File "/usr/local/Cellar/mercurial/5.1/lib/python2.7/site-packages/mercurial/dispatch.py", line 756, in runcommand
ret = _runcommand(ui, options, cmd, d)
File "/usr/local/Cellar/mercurial/5.1/lib/python2.7/site-packages/mercurial/dispatch.py", line 1030, in _runcommand
return cmdfunc()
File "/usr/local/Cellar/mercurial/5.1/lib/python2.7/site-packages/mercurial/dispatch.py", line 1018, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
File "/usr/local/Cellar/mercurial/5.1/lib/python2.7/site-packages/mercurial/util.py", line 1682, in check
return func(*args, **kwargs)
File "/usr/local/Cellar/mercurial/5.1/lib/python2.7/site-packages/mercurial/commands.py", line 1597, in clone
depth=opts.get('depth') or None)
File "/usr/local/Cellar/mercurial/5.1/lib/python2.7/site-packages/mercurial/hg.py", line 540, in clone
srcpeer = peer(ui, peeropts, source)
File "/usr/local/lib/python2.7/site-packages/hg_git-0.8.12-py2.7.egg/hggit/__init__.py", line 344, in peer
newpeer = orig(uiorrepo, *args, **opts)
File "/usr/local/Cellar/mercurial/5.1/lib/python2.7/site-packages/mercurial/hg.py", line 206, in peer
createopts=createopts).peer()
File "/usr/local/Cellar/mercurial/5.1/lib/python2.7/site-packages/mercurial/hg.py", line 171, in _peerorrepo
createopts=createopts)
TypeError: __init__() got an unexpected keyword argument 'createopts'
rafstefanusmacbook1:hrt stefanus$ hg --version
Mercurial Distributed SCM (version 5.1)