diff -r 3c89227788a2 -r 090e5f3900b7 hgext/infinitepush/store.py --- a/hgext/infinitepush/store.py Sat Oct 13 14:17:25 2018 +0200 +++ b/hgext/infinitepush/store.py Sat Oct 13 12:58:24 2018 +0000 @@ -12,6 +12,7 @@ import tempfile from mercurial import ( + node, pycompat, ) from mercurial.utils import ( @@ -80,7 +81,7 @@ return os.path.join(self._dirpath(filename), filename) def write(self, data): - filename = hashlib.sha1(data).hexdigest() + filename = node.hex(hashlib.sha1(data).digest()) dirpath = self._dirpath(filename) if not os.path.exists(dirpath):