← Back to team overview

dulwich-users team mailing list archive

Re: Mercurial crashed in dulwich

 

Hi Darrin,

On Mon, 2010-03-01 at 11:59 -0500, Darrin Thompson wrote:
> I think the offending bits are in here:
> 
> http://github.com/urso/qc.js

[...]

>   File "build/bdist.linux-x86_64/egg/hggit/git_handler.py", line 597,
> in fetch_pack
>   File
> "/home/darrint/hggit/lib/python2.6/site-packages/dulwich-0.4.1-py2.6-linux-x86_64.egg/dulwich/object_store.py", line 400, in commit
>     self.move_in_pack(path)
>   File
> "/home/darrint/hggit/lib/python2.6/site-packages/dulwich-0.4.1-py2.6-linux-x86_64.egg/dulwich/object_store.py", line 365, in move_in_pack
>     entries = p.sorted_entries()
>   File
> "/home/darrint/hggit/lib/python2.6/site-packages/dulwich-0.4.1-py2.6-linux-x86_64.egg/dulwich/pack.py", line 646, in sorted_entries
>     ret = list(self.iterentries(resolve_ext_ref, progress=progress))
>   File
> "/home/darrint/hggit/lib/python2.6/site-packages/dulwich-0.4.1-py2.6-linux-x86_64.egg/dulwich/pack.py", line 635, in iterentries
>     raise KeyError([sha_to_hex(h) for h in postponed.keys()])
> KeyError: ['444723d432107591f79a136e2c53a3e09ac9e46d',
> 'f7c2eeaae16fa61805af4daca8ab4dd772f3c392',
> '25d399375be69681067cd954bd99c5368b06cb2f',
> '43060f0e1f5c4374071f6fff7338ea29d59cb73c',
> 'b055a1d187559b70de80cd1615e5cf4b901f7ecb',
> '648476d264cc86beb46f535e4705009c34b6294d',
> '4bd97f17d6a9d1d7118c6e4ee8754a560be60a3a',
> '4cf85d3058a8d4b5bb8cff47d0bbae394f6778c9']
This looks like a thin pack that is not being moved in using
ObjectStore.move_in_thin_pack() but rather using
ObjectStore.move_in_pack(), so external references do not get resolved.
As far as I can tell this would be a hg-git bug.

Cheers,

Jelmer

Attachment: signature.asc
Description: This is a digitally signed message part


Follow ups

References