mercurial/error.py
changeset 46651 6fc57680cfd6
parent 46625 3941fe53670d
child 46794 e2f7b2695ba1
--- a/mercurial/error.py	Thu Mar 04 08:20:19 2021 -0800
+++ b/mercurial/error.py	Wed Feb 10 17:24:54 2021 +0530
@@ -73,9 +73,9 @@
         # Python 2.6+ complain about the 'message' property being deprecated
         self.lookupmessage = message
         if isinstance(name, bytes) and len(name) == 20:
-            from .node import short
+            from .node import hex
 
-            name = short(name)
+            name = hex(name)
         # if name is a binary node, it can be None
         RevlogError.__init__(
             self, b'%s@%s: %s' % (index, pycompat.bytestr(name), message)