--- a/hgext/remotefilelog/shallowutil.py Sun Dec 13 18:29:22 2020 -0800
+++ b/hgext/remotefilelog/shallowutil.py Tue Dec 01 21:54:46 2020 +0100
@@ -15,9 +15,9 @@
from mercurial.i18n import _
from mercurial.pycompat import open
+from mercurial.node import hex
from mercurial import (
error,
- node,
pycompat,
revlog,
util,
@@ -39,12 +39,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)