changeset 15347:799e56609ef6 stable

largefiles: use util.sha1() instead of hashlib.sha1() everywhere
author Thomas Arendsen Hein <thomas@intevation.de>
date Sun, 23 Oct 2011 21:59:15 +0200
parents 53f37b24f26a
children c681e478c429
files hgext/largefiles/lfutil.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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()