##// END OF EJS Templates
largefiles: don't close the fd passed to store._getfile
Mads Kiilerich -
r19003:ad993cb7 default
parent child Browse files
Show More
@@ -77,7 +77,7 b' class basestore(object):'
77 77 except StoreError, err:
78 78 ui.warn(err.longmessage())
79 79 hhash = ""
80 tmpfile.close() # has probably already been closed!
80 tmpfile.close()
81 81
82 82 if hhash != hash:
83 83 if hhash != "":
@@ -45,7 +45,6 b' class localstore(basestore.basestore):'
45 45 return lfutil.copyandhash(fd, tmpfile)
46 46 finally:
47 47 fd.close()
48 tmpfile.close()
49 48
50 49 def _verifyfile(self, cctx, cset, contents, standin, verified):
51 50 filename = lfutil.splitstandin(standin)
@@ -79,7 +79,6 b' class remotestore(basestore.basestore):'
79 79 tmpfile)
80 80 finally:
81 81 infile.close()
82 tmpfile.close()
83 82
84 83 def _verifyfile(self, cctx, cset, contents, standin, verified):
85 84 filename = lfutil.splitstandin(standin)
General Comments 0
You need to be logged in to leave comments. Login now