largefiles: don't close the fd passed to store._getfile

This commit is contained in:
Mads Kiilerich 2013-04-15 23:47:04 +02:00
parent 76454d8f22
commit eef7ef8e25
3 changed files with 1 additions and 3 deletions

View File

@ -77,7 +77,7 @@ class basestore(object):
except StoreError, err:
ui.warn(err.longmessage())
hhash = ""
tmpfile.close() # has probably already been closed!
tmpfile.close()
if hhash != hash:
if hhash != "":

View File

@ -45,7 +45,6 @@ class localstore(basestore.basestore):
return lfutil.copyandhash(fd, tmpfile)
finally:
fd.close()
tmpfile.close()
def _verifyfile(self, cctx, cset, contents, standin, verified):
filename = lfutil.splitstandin(standin)

View File

@ -79,7 +79,6 @@ class remotestore(basestore.basestore):
tmpfile)
finally:
infile.close()
tmpfile.close()
def _verifyfile(self, cctx, cset, contents, standin, verified):
filename = lfutil.splitstandin(standin)