--- a/hgext/infinitepush/store.py Sun Dec 13 18:29:22 2020 -0800
+++ b/hgext/infinitepush/store.py Tue Dec 01 21:54:46 2020 +0100
@@ -9,11 +9,9 @@
import os
import subprocess
+from mercurial.node import hex
from mercurial.pycompat import open
-from mercurial import (
- node,
- pycompat,
-)
+from mercurial import pycompat
from mercurial.utils import (
hashutil,
procutil,
@@ -86,7 +84,7 @@
return os.path.join(self._dirpath(filename), filename)
def write(self, data):
- filename = node.hex(hashutil.sha1(data).digest())
+ filename = hex(hashutil.sha1(data).digest())
dirpath = self._dirpath(filename)
if not os.path.exists(dirpath):