mercurial/chgserver.py
changeset 46113 59fa3890d40a
parent 46001 aab70f05d6ec
child 46143 dadca47e3d4d
--- a/mercurial/chgserver.py	Sun Dec 13 18:29:22 2020 -0800
+++ b/mercurial/chgserver.py	Tue Dec 01 21:54:46 2020 +0100
@@ -54,13 +54,13 @@
     getattr,
     setattr,
 )
+from .node import hex
 
 from . import (
     commandserver,
     encoding,
     error,
     extensions,
-    node,
     pycompat,
     util,
 )
@@ -74,7 +74,7 @@
 
 def _hashlist(items):
     """return sha1 hexdigest for a list"""
-    return node.hex(hashutil.sha1(stringutil.pprint(items)).digest())
+    return hex(hashutil.sha1(stringutil.pprint(items)).digest())
 
 
 # sensitive config sections affecting confighash