[Updated] D10318: revlog: fix error about unknown compression format in py3
valentin.gatienbaron (Valentin Gatien-Baron)
phabricator at mercurial-scm.org
Thu Apr 8 10:56:23 UTC 2021
Closed by commit rHGfbfb1d6d8459: revlog: fix error about unknown compression format in py3 (authored by valentin.gatienbaron).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D10318?vs=26667&id=26689
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D10318/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D10318
AFFECTED FILES
mercurial/revlog.py
CHANGE DETAILS
diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -13,6 +13,7 @@
from __future__ import absolute_import
+import binascii
import collections
import contextlib
import errno
@@ -2296,7 +2297,9 @@
compressor = engine.revlogcompressor(self._compengineopts)
self._decompressors[t] = compressor
except KeyError:
- raise error.RevlogError(_(b'unknown compression type %r') % t)
+ raise error.RevlogError(
+ _(b'unknown compression type %s') % binascii.hexlify(t)
+ )
return compressor.decompress(data)
To: valentin.gatienbaron, indygreg, #hg-reviewers, pulkit
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210408/15166dd3/attachment-0002.html>
More information about the Mercurial-patches
mailing list