##// END OF EJS Templates
subrepo: open files in 'rb' mode to read exact data in (issue3926)...
FUJIWARA Katsunori -
r19156:ed1a2121 stable
parent child Browse files
Show More
@@ -31,7 +31,7 b' def _getstorehashcachename(remotepath):'
31 def _calcfilehash(filename):
31 def _calcfilehash(filename):
32 data = ''
32 data = ''
33 if os.path.exists(filename):
33 if os.path.exists(filename):
34 fd = open(filename)
34 fd = open(filename, 'rb')
35 data = fd.read()
35 data = fd.read()
36 fd.close()
36 fd.close()
37 return util.sha1(data).hexdigest()
37 return util.sha1(data).hexdigest()
General Comments 0
You need to be logged in to leave comments. Login now