mercurial/chgserver.py
changeset 35582 72b91f905065
parent 35224 6e6d0a5b88e6
child 36781 ffa3026d4196
--- a/mercurial/chgserver.py	Fri Dec 29 05:22:06 2017 +0530
+++ b/mercurial/chgserver.py	Fri Dec 29 05:25:27 2017 +0530
@@ -55,6 +55,7 @@
     encoding,
     error,
     extensions,
+    node,
     pycompat,
     util,
 )
@@ -63,7 +64,7 @@
 
 def _hashlist(items):
     """return sha1 hexdigest for a list"""
-    return hashlib.sha1(str(items)).hexdigest()
+    return node.hex(hashlib.sha1(str(items)).digest())
 
 # sensitive config sections affecting confighash
 _configsections = [