hgext/remotefilelog/fileserverclient.py
changeset 46113 59fa3890d40a
parent 45942 89a2afe31e82
child 47012 d55b71393907
--- a/hgext/remotefilelog/fileserverclient.py	Sun Dec 13 18:29:22 2020 -0800
+++ b/hgext/remotefilelog/fileserverclient.py	Tue Dec 01 21:54:46 2020 +0100
@@ -17,7 +17,6 @@
 from mercurial.node import bin, hex, nullid
 from mercurial import (
     error,
-    node,
     pycompat,
     revlog,
     sshpeer,
@@ -47,12 +46,12 @@
 
 
 def getcachekey(reponame, file, id):
-    pathhash = node.hex(hashutil.sha1(file).digest())
+    pathhash = hex(hashutil.sha1(file).digest())
     return os.path.join(reponame, pathhash[:2], pathhash[2:], id)
 
 
 def getlocalkey(file, id):
-    pathhash = node.hex(hashutil.sha1(file).digest())
+    pathhash = hex(hashutil.sha1(file).digest())
     return os.path.join(pathhash, id)