--- a/hgext/largefiles/lfutil.py Sun Oct 23 21:22:55 2011 +0200
+++ b/hgext/largefiles/lfutil.py Sun Oct 23 21:59:15 2011 +0200
@@ -13,7 +13,6 @@
import platform
import shutil
import stat
-import hashlib
from mercurial import dirstate, httpconnection, match as match_, util, scmutil
from mercurial.i18n import _
@@ -430,7 +429,7 @@
def hexsha1(data):
"""hexsha1 returns the hex-encoded sha1 sum of the data in the file-like
object data"""
- h = hashlib.sha1()
+ h = util.sha1()
for chunk in util.filechunkiter(data):
h.update(chunk)
return h.hexdigest()