Exception when pushing large hg repo to new git repo
Created originally on Bitbucket by paulprovost (Paul Provost)
Hi,
I am trying to push a large hg repository of mixed text and binary files to a newly created git repo, and I get an exception. This is with Mercurial 3.8.3 on Linux and hg-git master at commit 3f5c822b93b1.
#!python
pushing to ../../git/orgfiles/
searching for changes
fatal: The remote end hung up unexpectedly
** 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.11+ (default, Apr 17 2016, 14:00:29) [GCC 5.3.1 20160413]
** Mercurial Distributed SCM (version 3.8.3)
** Extensions loaded: hggit
Traceback (most recent call last):
File "/home/paul/.virtualenvs/hg/bin/hg", line 43, in <module>
mercurial.dispatch.run()
File "/home/paul/.virtualenvs/hg/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 59, in run
sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
File "/home/paul/.virtualenvs/hg/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 125, in dispatch
ret = _runcatch(req)
File "/home/paul/.virtualenvs/hg/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 204, in _runcatch
return _dispatch(req)
File "/home/paul/.virtualenvs/hg/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 887, in _dispatch
cmdpats, cmdoptions)
File "/home/paul/.virtualenvs/hg/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 632, in runcommand
ret = _runcommand(ui, options, cmd, d)
File "/home/paul/.virtualenvs/hg/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 1017, in _runcommand
return checkargs()
File "/home/paul/.virtualenvs/hg/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 978, in checkargs
return cmdfunc()
File "/home/paul/.virtualenvs/hg/local/lib/python2.7/site-packages/mercurial/dispatch.py", line 884, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
File "/home/paul/.virtualenvs/hg/local/lib/python2.7/site-packages/mercurial/util.py", line 1005, in check
return func(*args, **kwargs)
File "/home/paul/.virtualenvs/hg/local/lib/python2.7/site-packages/mercurial/commands.py", line 5944, in push
opargs=opts.get('opargs'))
File "/home/paul/.virtualenvs/hg/local/lib/python2.7/site-packages/mercurial/extensions.py", line 204, in closure
return func(*(args + a), **kw)
File "/home/paul/dev/hg-git/hggit/util.py", line 52, in inner
return f(*args, **kwargs)
File "/home/paul/dev/hg-git/hggit/__init__.py", line 361, in exchangepush
pushop.cgresult = repo.githandler.push(remote.path, revs, force)
File "/home/paul/dev/hg-git/hggit/git_handler.py", line 343, in push
old_refs, new_refs = self.upload_pack(remote, revs, force)
File "/home/paul/dev/hg-git/hggit/git_handler.py", line 1025, in upload_pack
progress=callback)
File "/home/paul/.virtualenvs/hg/local/lib/python2.7/site-packages/dulwich/client.py", line 531, in send_pack
proto, negotiated_capabilities, old_refs, new_refs)
File "/home/paul/.virtualenvs/hg/local/lib/python2.7/site-packages/dulwich/client.py", line 357, in _handle_receive_pack_head
proto.write_pkt_line(old_sha1 + b' ' + new_sha1 + b' ' + refname)
TypeError: cannot concatenate 'str' and 'NoneType' objects
Any ideas?