[Request] [+ ] D10875: revlog: byteify a few error strings
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Sat Jun 12 04:57:37 UTC 2021
mharbison72 created this revision.
Herald added a reviewer: indygreg.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D10875
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
@@ -1760,7 +1760,7 @@
elif compression_mode == COMP_MODE_INLINE:
return self.decompress(data)
else:
- msg = 'unknown compression mode %d'
+ msg = b'unknown compression mode %d'
msg %= compression_mode
raise error.RevlogError(msg)
@@ -1826,7 +1826,7 @@
elif comp_mode == COMP_MODE_DEFAULT:
ladd(def_decomp(c))
else:
- msg = 'unknown compression mode %d'
+ msg = b'unknown compression mode %d'
msg %= comp_mode
raise error.RevlogError(msg)
@@ -2054,7 +2054,7 @@
elif comp == COMP_MODE_INLINE:
segment = self.decompress(comp_segment)
else:
- msg = 'unknown compression mode %d'
+ msg = b'unknown compression mode %d'
msg %= comp
raise error.RevlogError(msg)
To: mharbison72, indygreg, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20210612/d9802cde/attachment.html>
More information about the Mercurial-patches
mailing list