mercurial/templatefilters.py
changeset 46113 59fa3890d40a
parent 45942 89a2afe31e82
child 46819 d4ba4d51f85f
--- a/mercurial/templatefilters.py	Sun Dec 13 18:29:22 2020 -0800
+++ b/mercurial/templatefilters.py	Tue Dec 01 21:54:46 2020 +0100
@@ -12,10 +12,10 @@
 import time
 
 from .i18n import _
+from .node import hex
 from . import (
     encoding,
     error,
-    node,
     pycompat,
     registrar,
     smartset,
@@ -280,7 +280,7 @@
     """Any text. Convert a binary Mercurial node identifier into
     its long hexadecimal representation.
     """
-    return node.hex(text)
+    return hex(text)
 
 
 @templatefilter(b'hgdate', intype=templateutil.date)