mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
largefiles: don't close the fd passed to store._getfile
This commit is contained in:
parent
76454d8f22
commit
eef7ef8e25
@ -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 != "":
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user