Crash cloning Celery repository

Bug #654124 reported by wolever
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Dulwich
New
Undecided
Unassigned

Bug Description

With Mercurial 1.6.4+2-1f6bd49383b3, hg-git 0.2.4 and dulwich 0.6.1 I get the following exception when I clone the Celery repository <git://github.com/ask/celery.git>:

* unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or <email address hidden>
** Python 2.6.5 (r265:79063, Jul 8 2010, 23:40:46) [GCC 4.0.1 (Apple Inc. build 5490)]
** Mercurial Distributed SCM (version 1.6.4+2-1f6bd49383b3)
** Extensions loaded: color, purge, mq, graphlog, attic, record, info, rebase, bookmarks, transplant, progress, setpath, hggit, mergediff
Traceback (most recent call last):
  File "/usr/local/bin/hg", line 27, in <module>
    mercurial.dispatch.run()
  File "/Users/wolever/code/software/hg-stable/mercurial/dispatch.py", line 16, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/Users/wolever/code/software/hg-stable/mercurial/dispatch.py", line 34, in dispatch
    return _runcatch(u, args)
  File "/Users/wolever/code/software/hg-stable/mercurial/dispatch.py", line 54, in _runcatch
    return _dispatch(ui, args)
  File "/Users/wolever/code/software/hg-stable/mercurial/dispatch.py", line 494, in _dispatch
    cmdpats, cmdoptions)
  File "/Users/wolever/code/software/hg-stable/mercurial/dispatch.py", line 355, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/Users/wolever/code/software/hg-stable/mercurial/extensions.py", line 174, in wrap
    return wrapper(origfn, *args, **kwargs)
  File "/Users/wolever/code/software/hg-stable/hgext/color.py", line 211, in colorcmd
    return orig(ui_, opts, cmd, cmdfunc)
  File "/Users/wolever/code/software/hg-stable/mercurial/dispatch.py", line 545, in _runcommand
    return checkargs()
  File "/Users/wolever/code/software/hg-stable/mercurial/dispatch.py", line 499, in checkargs
    return cmdfunc()
  File "/Users/wolever/code/software/hg-stable/mercurial/dispatch.py", line 492, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/Users/wolever/code/software/hg-stable/mercurial/util.py", line 420, in check
    return func(*args, **kwargs)
  File "/Users/wolever/code/software/hg-stable/mercurial/commands.py", line 725, in clone
    branch=opts.get('branch'))
  File "/Users/wolever/code/software/hg-stable/mercurial/hg.py", line 334, in clone
    dest_repo.clone(src_repo, heads=revs, stream=stream)
  File "/Users/wolever/code/software/hg-stable/mercurial/localrepo.py", line 1853, in clone
    return self.pull(remote, heads)
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/hggit/hgrepo.py", line 12, in pull
    git.fetch(remote.path, heads)
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/hggit/git_handler.py", line 100, in fetch
    self.import_git_objects(remote_name, refs)
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/hggit/git_handler.py", line 407, in import_git_objects
    self.import_git_commit(commit)
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/hggit/git_handler.py", line 417, in import_git_commit
    files = self.get_files_changed(commit)
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/hggit/git_handler.py", line 823, in get_files_changed
    for (oldfile, newfile), (oldmode, newmode), (oldsha, newsha) in changes:
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/dulwich/object_store.py", line 141, in tree_changes
    ttree = self[tid]
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/dulwich/object_store.py", line 106, in __getitem__
    return ShaFile.from_raw_string(type_num, uncomp)
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/dulwich/objects.py", line 365, in from_raw_string
    obj.set_raw_string(string)
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/dulwich/objects.py", line 252, in set_raw_string
    self.set_raw_chunks([text])
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/dulwich/objects.py", line 256, in set_raw_chunks
    self._deserialize(chunks)
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/dulwich/objects.py", line 824, in _deserialize
    self._entries = dict([(n, (m, s)) for n, m, s in parsed_entries])
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/dulwich/objects.py", line 687, in parse_tree
    assert mode_text[0] != '0'
AssertionError

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.