[PATCH] largefiles: fix argument to util.sha

Carter, Eli Eli.Carter at tektronix.com
Mon Oct 31 11:39:13 CDT 2011


# HG changeset patch
# User Eli Carter <eli.carter at tektronix.com>
# Date 1320078866 18000
# Branch stable
# Node ID 2110cf3c05aea99bdf0cb06e1b158f60d54361f9
# Parent  87248de091352f746e8cd1cee01af29138c8e443
largefiles: fix argument to util.sha1
This can cause a traceback during clone of largefiles over ssh

diff -r 87248de09135 -r 2110cf3c05ae hgext/largefiles/lfutil.py
--- a/hgext/largefiles/lfutil.py	Sun Oct 30 12:10:11 2011 -0500
+++ b/hgext/largefiles/lfutil.py	Mon Oct 31 11:34:26 2011 -0500
@@ -422,7 +422,7 @@
 def hexsha1(data):
     """hexsha1 returns the hex-encoded sha1 sum of the data in the file-like
     object data"""
-    h = util.sha1()
+    h = util.sha1('')
     for chunk in util.filechunkiter(data):
         h.update(chunk)
     return h.hexdigest()



More information about the Mercurial-devel mailing list