mercurial/revsetlang.py
changeset 46113 59fa3890d40a
parent 45942 89a2afe31e82
child 46819 d4ba4d51f85f
--- a/mercurial/revsetlang.py	Sun Dec 13 18:29:22 2020 -0800
+++ b/mercurial/revsetlang.py	Tue Dec 01 21:54:46 2020 +0100
@@ -11,9 +11,9 @@
 
 from .i18n import _
 from .pycompat import getattr
+from .node import hex
 from . import (
     error,
-    node,
     parser,
     pycompat,
     smartset,
@@ -687,7 +687,7 @@
         parse(arg)  # make sure syntax errors are confined
         return b'(%s)' % arg
     elif c == b'n':
-        return _quote(node.hex(arg))
+        return _quote(hex(arg))
     elif c == b'b':
         try:
             return _quote(arg.branch())
@@ -707,7 +707,7 @@
     elif t == b's':
         return b"_list(%s)" % _quote(b"\0".join(s))
     elif t == b'n':
-        return b"_hexlist('%s')" % b"\0".join(node.hex(a) for a in s)
+        return b"_hexlist('%s')" % b"\0".join(hex(a) for a in s)
     elif t == b'b':
         try:
             return b"_list('%s')" % b"\0".join(a.branch() for a in s)