merge with stable
authorAugie Fackler <augie@google.com>
Fri, 18 Sep 2020 10:48:43 -0400
changeset 45505 e3df1f560d9a
parent 45504 a8843eda9a35 (current diff)
parent 45503 bd5b2b29b82d (diff)
child 45506 1f50bcc96595
merge with stable
--- a/mercurial/error.py	Fri Sep 18 20:19:52 2020 +0900
+++ b/mercurial/error.py	Fri Sep 18 10:48:43 2020 -0400
@@ -73,7 +73,10 @@
             from .node import short
 
             name = short(name)
-        RevlogError.__init__(self, b'%s@%s: %s' % (index, name, message))
+        # if name is a binary node, it can be None
+        RevlogError.__init__(
+            self, b'%s@%s: %s' % (index, pycompat.bytestr(name), message)
+        )
 
     def __bytes__(self):
         return RevlogError.__bytes__(self)