mercurial crash when doing pull

Matt Mackall mpm at selenic.com
Tue Apr 3 21:35:14 CDT 2007


On Tue, Apr 03, 2007 at 05:39:42PM +0100, Ralf Gommers wrote:
> Hello,
> 
> I would like to report a crash of mercurial that occurred when I did a "hg 
> pull". I was pulling from a repository on my hard drive to a repo on a usb 
> stick. The hard drive repo is unaffected, but the one on the usb stick is 
> corrupted. I attached the traceback and the output "hg status" gives now.
> 
> I am using version 0.9.1 on linux (kubuntu edgy). If you need more information 
> please let me know. Hope this helps.
> 
> Best regards,
> Ralf Gommers

> ** unknown exception encountered, details follow
> ** report bug details to http://www.selenic.com/mercurial/bts
> ** or mercurial at selenic.com
> ** Mercurial Distributed SCM (version 0.9.1)
>     self.dirstate.read()
>   File "/var/lib/python-support/python2.4/mercurial/dirstate.py", line 188, in r                                                ead
>     self.parse(st)
>   File "/var/lib/python-support/python2.4/mercurial/dirstate.py", line 177, in p                                                arse
>     f, c = f.split('\0')
> ValueError: too many values to unpack

Looks like your dirstate was damaged.

> pulling from /home/rgommers/documents/latex/thesis/hgrepo
> searching for changes
> adding changesets
> adding manifests
> adding file changes
...
>     self.parseindex(f, st)
>   File "/var/lib/python-support/python2.4/mercurial/revlog.py", line 419, in par
> seindex
>     e = struct.unpack(self.indexformat, cur)
> struct.error: unpack str size does not match format

And perhaps a damaged index in the source repo. Does it pass verify?

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list