revlog: convert an Abort message to bytes
authorMatt Harbison <matt_harbison@yahoo.com>
Thu, 18 Mar 2021 18:57:21 -0400
changeset 46807 9ff4672c8c26
parent 46806 2b1b8f3e6510
child 46808 2c0e35f6957a
revlog: convert an Abort message to bytes Flagged by pytype. Differential Revision: https://phab.mercurial-scm.org/D10234
mercurial/revlog.py
--- a/mercurial/revlog.py	Wed Mar 17 19:06:00 2021 +0100
+++ b/mercurial/revlog.py	Thu Mar 18 18:57:21 2021 -0400
@@ -3250,7 +3250,7 @@
                     # rewriting entries that already have sidedata is not
                     # supported yet, because it introduces garbage data in the
                     # revlog.
-                    msg = "Rewriting existing sidedata is not supported yet"
+                    msg = b"Rewriting existing sidedata is not supported yet"
                     raise error.Abort(msg)
                 entry = entry[:8]
                 entry += (current_offset, len(serialized_sidedata))