equal
deleted
inserted
replaced
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 """ |