comparison mercurial/revlog.py @ 1853:5ac811b720de

Fix some problems when working on broken repositories: Fix tracebacks in hg verify for certain repo errors. Print compression type byte encoded safely.
author Thomas Arendsen Hein <thomas@intevation.de>
date Wed, 08 Mar 2006 00:27:23 +0100
parents 2e0a288ca93e
children 7518823709a2
comparison
equal deleted inserted replaced
1852:fdf9cbf56ec7 1853:5ac811b720de
46 if not bin: return bin 46 if not bin: return bin
47 t = bin[0] 47 t = bin[0]
48 if t == '\0': return bin 48 if t == '\0': return bin
49 if t == 'x': return zlib.decompress(bin) 49 if t == 'x': return zlib.decompress(bin)
50 if t == 'u': return bin[1:] 50 if t == 'u': return bin[1:]
51 raise RevlogError(_("unknown compression type %s") % t) 51 raise RevlogError(_("unknown compression type %r") % t)
52 52
53 indexformat = ">4l20s20s20s" 53 indexformat = ">4l20s20s20s"
54 54
55 class lazyparser(object): 55 class lazyparser(object):
56 """ 56 """