TypeError: 'NoneType' object is not iterable (Mercurial version 2.6.3)
Created originally on Bitbucket by regisz (Balázs Regényi)
Hi!
I know the mercurial version 2.6.3 has not been tested yet, but on Debian Squeeze used pip or easy_install the mercurial version will be 2.6.3. Unfortunately the mercurial version from debian package is too old. So, I would be very grateful if you can support this mercurial version :).
The error occurred when I would like to clone an empty git (shared, bare) repository via git+ssh.
The backtrace:
#!python
["git-upload-pack '/home/git/rev'"]
** Unknown exception encountered with possibly-broken third-party extension hgsubversion
** which supports versions unknown of Mercurial.
** Please disable hgsubversion and try your action again.
** If that fixes the bug please report it to the extension author.
** Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40) [GCC 4.4.5]
** Mercurial Distributed SCM (version 2.6.3)
** Extensions loaded: hgsubversion, graphlog, pager, rebase, color, hggit, histedit
Traceback (most recent call last):
File "/usr/local/bin/hg", line 38, in <module>
mercurial.dispatch.run()
File "/usr/local/lib/python2.6/dist-packages/mercurial/dispatch.py", line 28, in run
sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
File "/usr/local/lib/python2.6/dist-packages/mercurial/dispatch.py", line 69, in dispatch
ret = _runcatch(req)
File "/usr/local/lib/python2.6/dist-packages/mercurial/dispatch.py", line 97, in _runcatch
return _dispatch(req)
File "/usr/local/lib/python2.6/dist-packages/mercurial/dispatch.py", line 778, in _dispatch
cmdpats, cmdoptions)
File "/usr/local/lib/python2.6/dist-packages/mercurial/dispatch.py", line 549, in runcommand
ret = _runcommand(ui, options, cmd, d)
File "/usr/local/lib/python2.6/dist-packages/mercurial/extensions.py", line 188, in wrap
return wrapper(origfn, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/hgext/color.py", line 405, in colorcmd
return orig(ui_, opts, cmd, cmdfunc)
File "/usr/local/lib/python2.6/dist-packages/mercurial/extensions.py", line 188, in wrap
return wrapper(origfn, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/hgext/pager.py", line 132, in pagecmd
return orig(ui, options, cmd, cmdfunc)
File "/usr/local/lib/python2.6/dist-packages/mercurial/dispatch.py", line 869, in _runcommand
return checkargs()
File "/usr/local/lib/python2.6/dist-packages/mercurial/dispatch.py", line 840, in checkargs
return cmdfunc()
File "/usr/local/lib/python2.6/dist-packages/mercurial/dispatch.py", line 775, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
File "/usr/local/lib/python2.6/dist-packages/mercurial/util.py", line 506, in check
return func(*args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/mercurial/extensions.py", line 143, in wrap
util.checksignature(origfn), *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/mercurial/util.py", line 506, in check
return func(*args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/hgsubversion/wrappers.py", line 590, in clone
orig(ui, source, dest, **opts)
File "/usr/local/lib/python2.6/dist-packages/mercurial/util.py", line 506, in check
return func(*args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/mercurial/commands.py", line 1264, in clone
branch=opts.get('branch'))
File "/usr/local/lib/python2.6/dist-packages/mercurial/extensions.py", line 188, in wrap
return wrapper(origfn, *args, **kwargs)
File "/usr/local/lib/python2.6/dist-packages/hgsubversion/wrappers.py", line 579, in hgclonewrapper
data['srcrepo'], data['dstrepo'] = orig(ui, *args, **opts)
File "/usr/local/lib/python2.6/dist-packages/mercurial/hg.py", line 372, in clone
destpeer.local().clone(srcpeer, heads=revs, stream=stream)
File "/usr/local/lib/python2.6/dist-packages/mercurial/localrepo.py", line 2558, in clone
return self.pull(remote, heads)
File "/usr/local/lib/python2.6/dist-packages/hg_git-0.4.0-py2.6.egg/hggit/hgrepo.py", line 14, in pull
return git.fetch(remote.path, heads)
File "/usr/local/lib/python2.6/dist-packages/hg_git-0.4.0-py2.6.egg/hggit/git_handler.py", line 228, in fetch
modheads = [refs[k] for k in refs if k.startswith('refs/heads/')
TypeError: 'NoneType' object is not iterable
Thx!