changeset 37414 | 2d965bfeb8f6 |
parent 37293 | d5d665f6615a |
child 37484 | c22fd3c4c23e |
--- a/hgext/largefiles/proto.py Fri Apr 06 22:22:19 2018 +0200 +++ b/hgext/largefiles/proto.py Tue Feb 27 02:37:31 2018 +0100 @@ -41,7 +41,8 @@ tmpfp = util.atomictempfile(path, createmode=repo.store.createmode) try: - proto.forwardpayload(tmpfp) + for p in proto.getpayload(): + tmpfp.write(p) tmpfp._fp.seek(0) if sha != lfutil.hexsha1(tmpfp._fp): raise IOError(0, _('largefile contents do not match hash'))