diff mercurial/error.py @ 46690:6fc57680cfd6

error: remove shortening of node in error message This strips the complete 20 bytes node which was not found. Having the the full node in error message is important as it makes debugging easier. If a short node is to be displayed, that should be done by callers. Differential Revision: https://phab.mercurial-scm.org/D9994
author Pulkit Goyal <7895pulkit@gmail.com>
date Wed, 10 Feb 2021 17:24:54 +0530
parents 3941fe53670d
children e2f7b2695ba1
line wrap: on
line diff
--- 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)