hg verify: 'unknown compression type'

Matt Mackall mpm at selenic.com
Mon Aug 22 20:25:46 CDT 2005


On Mon, Aug 22, 2005 at 08:57:29PM -0400, Bart Trojanowski wrote:
> Hello,
> 
> I have a clone of linux-2.6 repository, which I have been happily
> mirroring for many weeks.  Recently I was unable to pull from this tree
> (over ssh and hg) to a working directory where I actually do the kernel
> build.
> 
> While the 'hg pull -u' is happy to pull changes from kernel.org, the
> resulting tree is unusable.
> 
> $ hg verify 
> checking changesets
> checking manifests
> crosschecking files in changesets and manifests
> checking files
...
>   File "/home/muon/bart/lib/python/mercurial/hg.py", line 1965, in verify
>     t = fl.read(n)
...
> unknown compression type ?

Hmm. That's bad.

Had the decompress code thrown a proper exception, we would have
gotten enough info to figure 


                # verify contents
                try:
                    t = fl.read(n)
                except Exception, inst:
                    self.ui.warn("unpacking file %s %s: %s\n"
                                 % (f, short(n), inst))
                    errors += 1

If you change revlog.py:35 to:

    raise Exception("unknown compression type %s" % t)

..we'll see which file and revision broken. Then send me a copy and
I'll try to dissect it. It's probably a single bit error in the index,
so be sure to send both files.

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list