branch | stable |
changeset 19156 | ed1a212193dc |
parent 19012 | 811e253226c3 |
child 19226 | c58b6ab4c26f |
--- a/mercurial/subrepo.py Fri May 03 19:34:59 2013 +0200 +++ b/mercurial/subrepo.py Thu May 09 21:09:58 2013 +0900 @@ -31,7 +31,7 @@ def _calcfilehash(filename): data = '' if os.path.exists(filename): - fd = open(filename) + fd = open(filename, 'rb') data = fd.read() fd.close() return util.sha1(data).hexdigest()