# HG changeset patch # User Mads Kiilerich # Date 1366062424 -7200 # Node ID ad993cb7bbb111d3aaeb213a4e2d9d845c72fd8c # Parent 5083baa6cbf8bb210c9a0612f992359c76747582 largefiles: don't close the fd passed to store._getfile diff -r 5083baa6cbf8 -r ad993cb7bbb1 hgext/largefiles/basestore.py --- a/hgext/largefiles/basestore.py Mon Apr 15 23:43:50 2013 +0200 +++ b/hgext/largefiles/basestore.py Mon Apr 15 23:47:04 2013 +0200 @@ -77,7 +77,7 @@ except StoreError, err: ui.warn(err.longmessage()) hhash = "" - tmpfile.close() # has probably already been closed! + tmpfile.close() if hhash != hash: if hhash != "": diff -r 5083baa6cbf8 -r ad993cb7bbb1 hgext/largefiles/localstore.py --- a/hgext/largefiles/localstore.py Mon Apr 15 23:43:50 2013 +0200 +++ b/hgext/largefiles/localstore.py Mon Apr 15 23:47:04 2013 +0200 @@ -45,7 +45,6 @@ return lfutil.copyandhash(fd, tmpfile) finally: fd.close() - tmpfile.close() def _verifyfile(self, cctx, cset, contents, standin, verified): filename = lfutil.splitstandin(standin) diff -r 5083baa6cbf8 -r ad993cb7bbb1 hgext/largefiles/remotestore.py --- a/hgext/largefiles/remotestore.py Mon Apr 15 23:43:50 2013 +0200 +++ b/hgext/largefiles/remotestore.py Mon Apr 15 23:47:04 2013 +0200 @@ -79,7 +79,6 @@ tmpfile) finally: infile.close() - tmpfile.close() def _verifyfile(self, cctx, cset, contents, standin, verified): filename = lfutil.splitstandin(standin)