##// END OF EJS Templates
revlog: fix error about unknown compression format in py3...
Valentin Gatien-Baron -
r47611:fbfb1d6d default
parent child Browse files
Show More
@@ -13,6 +13,7 b' and O(changes) merge between branches.'
13
13
14 from __future__ import absolute_import
14 from __future__ import absolute_import
15
15
16 import binascii
16 import collections
17 import collections
17 import contextlib
18 import contextlib
18 import errno
19 import errno
@@ -2296,7 +2297,9 b' class revlog(object):'
2296 compressor = engine.revlogcompressor(self._compengineopts)
2297 compressor = engine.revlogcompressor(self._compengineopts)
2297 self._decompressors[t] = compressor
2298 self._decompressors[t] = compressor
2298 except KeyError:
2299 except KeyError:
2299 raise error.RevlogError(_(b'unknown compression type %r') % t)
2300 raise error.RevlogError(
2301 _(b'unknown compression type %s') % binascii.hexlify(t)
2302 )
2300
2303
2301 return compressor.decompress(data)
2304 return compressor.decompress(data)
2302
2305
General Comments 0
You need to be logged in to leave comments. Login now