From patchwork Thu Mar 18 22:58:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D10234: revlog: convert an Abort message to bytes From: phabricator X-Patchwork-Id: 48550 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Thu, 18 Mar 2021 22:58:03 +0000 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 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))