hgext/largefiles/lfcommands.py
changeset 29341 0d83ad967bf8
parent 29317 5ec25534ef4f
child 29355 85868ecf2c0d
--- a/hgext/largefiles/lfcommands.py	Fri Jun 10 00:25:07 2016 -0400
+++ b/hgext/largefiles/lfcommands.py	Fri Jun 10 00:12:33 2016 -0400
@@ -10,6 +10,7 @@
 from __future__ import absolute_import
 
 import errno
+import hashlib
 import os
 import shutil
 
@@ -229,7 +230,7 @@
                         raise error.Abort(_('largefile %s becomes symlink') % f)
 
                 # largefile was modified, update standins
-                m = util.sha1('')
+                m = hashlib.sha1('')
                 m.update(ctx[f].data())
                 hash = m.hexdigest()
                 if f not in lfiletohash or lfiletohash[f] != hash: