--- a/hgext/largefiles/lfcommands.py Mon Jan 13 17:16:54 2020 -0500
+++ b/hgext/largefiles/lfcommands.py Mon Jan 13 14:12:31 2020 -0500
@@ -10,7 +10,6 @@
from __future__ import absolute_import
import errno
-import hashlib
import os
import shutil
@@ -29,6 +28,7 @@
scmutil,
util,
)
+from mercurial.utils import hashutil
from ..convert import (
convcmd,
@@ -273,7 +273,7 @@
)
# largefile was modified, update standins
- m = hashlib.sha1(b'')
+ m = hashutil.sha1(b'')
m.update(ctx[f].data())
hash = node.hex(m.digest())
if f not in lfiletohash or lfiletohash[f] != hash: