revlogstat.py on Windows
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:
> I would like to ask if anyone has an idea what's wrong with my setup.
> I have (slightly modified):
> 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
> 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.
More information about the Mercurial