AttributeError: 'Tag' object has no attribute 'parents'
Created originally on Bitbucket by krojew (Kamil Rojewski)
Hi, I've encountered an error in the most recent version of hg-git while trying to push changes to git:
** unknown exception encountered, please report by visiting
** http://mercurial.selenic.com/wiki/BugTracker
** Python 2.7.3 (default, Sep 26 2013, 20:03:06) [GCC 4.6.3]
** Mercurial Distributed SCM (version 2.8.1+11-5ff0fd023850)
** Extensions loaded: hggit
Traceback (most recent call last):
File "/usr/local/bin/hg", line 38, in <module>
mercurial.dispatch.run()
File "/usr/local/lib/python2.7/dist-packages/mercurial/dispatch.py", line 28, in run
sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
File "/usr/local/lib/python2.7/dist-packages/mercurial/dispatch.py", line 69, in dispatch
ret = _runcatch(req)
File "/usr/local/lib/python2.7/dist-packages/mercurial/dispatch.py", line 134, in _runcatch
return _dispatch(req)
File "/usr/local/lib/python2.7/dist-packages/mercurial/dispatch.py", line 807, in _dispatch
cmdpats, cmdoptions)
File "/usr/local/lib/python2.7/dist-packages/mercurial/dispatch.py", line 586, in runcommand
ret = _runcommand(ui, options, cmd, d)
File "/usr/local/lib/python2.7/dist-packages/mercurial/dispatch.py", line 898, in _runcommand
return checkargs()
File "/usr/local/lib/python2.7/dist-packages/mercurial/dispatch.py", line 869, in checkargs
return cmdfunc()
File "/usr/local/lib/python2.7/dist-packages/mercurial/dispatch.py", line 804, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
File "/usr/local/lib/python2.7/dist-packages/mercurial/util.py", line 512, in check
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/mercurial/commands.py", line 4708, in push
newbranch=opts.get('new_branch'))
File "/usr/local/lib/python2.7/dist-packages/hg_git-0.5.0-py2.7.egg/hggit/hgrepo.py", line 22, in push
return git.push(remote.path, revs, force)
File "/usr/local/lib/python2.7/dist-packages/hg_git-0.5.0-py2.7.egg/hggit/git_handler.py", line 277, in push
old_refs, new_refs = self.upload_pack(remote, revs, force)
File "/usr/local/lib/python2.7/dist-packages/hg_git-0.5.0-py2.7.egg/hggit/git_handler.py", line 891, in upload_pack
new_refs = client.send_pack(path, changed, genpack)
File "/usr/local/lib/python2.7/dist-packages/dulwich-0.9.4-py2.7-linux-x86_64.egg/dulwich/client.py", line 496, in send_pack
objects = generate_pack_contents(have, want)
File "/usr/local/lib/python2.7/dist-packages/hg_git-0.5.0-py2.7.egg/hggit/git_handler.py", line 874, in genpack
for mo in self.git.object_store.find_missing_objects(have, want):
File "/usr/local/lib/python2.7/dist-packages/dulwich-0.9.4-py2.7-linux-x86_64.egg/dulwich/object_store.py", line 176, in find_missing_objects
finder = MissingObjectFinder(self, haves, wants, progress, get_tagged)
File "/usr/local/lib/python2.7/dist-packages/dulwich-0.9.4-py2.7-linux-x86_64.egg/dulwich/object_store.py", line 990, in __init__
all_ancestors = object_store._collect_ancestors(have_commits)[0]
File "/usr/local/lib/python2.7/dist-packages/dulwich-0.9.4-py2.7-linux-x86_64.egg/dulwich/object_store.py", line 239, in _collect_ancestors
queue.extend(cmt.parents)
AttributeError: 'Tag' object has no attribute 'parents'
fatal: write error: Broken pipe