revlogstat.py on Windows

Benoit Boissinot bboissin at gmail.com
Mon Mar 31 13:06:15 CDT 2008


On Mon, Mar 31, 2008 at 7:59 PM, Adrian Buehlmann <adrian at cadifra.com> wrote:
> Question from a newbie trying to understand Mercurial source code
>  (just asking for my own learning):
>
>  As already posted, I fail to run Matt's revlogstat python script:
>  http://selenic.com/pipermail/mercurial/2008-March/018276.html
>
>  I would like to ask if anyone has an idea what's wrong with my setup.
>
>  I have (slightly modified):
> [snip]
>
>  Running that on my WinXP on a clone of the crew repo:
>
>  > python revlogstat.py .hg/store/00manifest.i
>  0 453 453 100.00
>  calling rd = r.revdiff(0, 1) len(rd) = 123
> [snip]
>     return _decompress(bin)
>  zlib.error: Error -5 while decompressing data
>
>
>  So the call "r.revdiff(15, 16)" fails.
>
>  According to http://www.zlib.net/manual.html, error -5 is:
>
>  #define Z_BUF_ERROR    (-5)
>
>  But I found no further info.
>
does verify pass on the repo ?

anyway from the source of zlib:
  deflate() returns [...] Z_BUF_ERROR if no progress is possible
  (for example avail_in or avail_out was zero). Note that Z_BUF_ERROR is not
  fatal, and deflate() can be called again with more input and more output
  space to continue compressing.

so it probably shouldn't abort at this point.

regards,

Benoit


More information about the Mercurial mailing list