equal
deleted
inserted
replaced
1994 |
1994 |
1995 if t == 'x': |
1995 if t == 'x': |
1996 try: |
1996 try: |
1997 return _zlibdecompress(data) |
1997 return _zlibdecompress(data) |
1998 except zlib.error as e: |
1998 except zlib.error as e: |
1999 raise RevlogError(_('revlog decompress error: %s') % str(e)) |
1999 raise RevlogError(_('revlog decompress error: %s') % |
|
2000 util.forcebytestr(e)) |
2000 # '\0' is more common than 'u' so it goes first. |
2001 # '\0' is more common than 'u' so it goes first. |
2001 elif t == '\0': |
2002 elif t == '\0': |
2002 return data |
2003 return data |
2003 elif t == 'u': |
2004 elif t == 'u': |
2004 return util.buffer(data, 1) |
2005 return util.buffer(data, 1) |