[PATCH 1 of 2] nodemap: use bytes for the error message
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Sun Nov 10 17:26:57 UTC 2019
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at octobus.net>
# Date 1573405970 -3600
# Sun Nov 10 18:12:50 2019 +0100
# Node ID 26c342b1b1e492b5b3c08c0dcc71492784dc766c
# Parent 494731e060b7ebb613546f71127d4ffbc5e40019
# EXP-Topic nodemap-preparation
# Available At https://dev.heptapod.net/octobus/mercurial-devel/
# hg pull https://dev.heptapod.net/octobus/mercurial-devel/ -r 26c342b1b1e4
nodemap: use bytes for the error message
Spotted by Yuya Nishihara.
diff --git a/mercurial/revlogutils/__init__.py b/mercurial/revlogutils/__init__.py
--- a/mercurial/revlogutils/__init__.py
+++ b/mercurial/revlogutils/__init__.py
@@ -11,4 +11,4 @@ from .. import error
class NodeMap(dict):
def __missing__(self, x):
- raise error.RevlogError('unknown node: %s' % x)
+ raise error.RevlogError(b'unknown node: %s' % x)
More information about the Mercurial-devel
mailing list