[Updated] D10875: revlog: byteify a few error strings

mharbison72 (Matt Harbison) phabricator at mercurial-scm.org
Tue Jun 15 18:56:40 UTC 2021


Closed by commit rHG5fbac82a8780: revlog: byteify a few error strings (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D10875?vs=28558&id=28585

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D10875/new/

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, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210615/58a32f6f/attachment-0002.html>


More information about the Mercurial-patches mailing list