Patchwork D10234: revlog: convert an Abort message to bytes

login
register
mail settings
Submitter phabricator
Date March 18, 2021, 10:58 p.m.
Message ID <differential-rev-PHID-DREV-zsqo3l372mtddivjycdd-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48550/
State Superseded
Headers show

Comments

phabricator - March 18, 2021, 10:58 p.m.
mharbison72 created this revision.
Herald added a reviewer: indygreg.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  Flagged by pytype.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D10234

AFFECTED FILES
  mercurial/revlog.py

CHANGE DETAILS




To: mharbison72, indygreg, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -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))