changeset 46806:9ff4672c8c26

revlog: convert an Abort message to bytes Flagged by pytype. Differential Revision: https://phab.mercurial-scm.org/D10234
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 18 Mar 2021 18:57:21 -0400
parents 2b1b8f3e6510
children 2c0e35f6957a
files mercurial/revlog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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))