changeset 40252 | 090e5f3900b7 |
parent 39826 | c31ce080eb75 |
child 43076 | 2372284d9457 |
--- 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):