# HG changeset patch # User Thomas Arendsen Hein # Date 1142669607 -3600 # Node ID 915b81a35e46147dac7e0c83209c27bc634b7ef0 # Parent 119165543ce61d84d344c69c6db73e29cbc93790 imported patch /home/thomas/fix-incoming-abortion4.patch diff -r 119165543ce6 -r 915b81a35e46 mercurial/bundlerepo.py --- a/mercurial/bundlerepo.py Fri Mar 17 17:23:52 2006 -0800 +++ b/mercurial/bundlerepo.py Sat Mar 18 09:13:27 2006 +0100 @@ -206,3 +206,6 @@ else: return filelog.filelog(self.opener, f) + def close(self): + """Close assigned bundle file immediately.""" + self.bundlefile.close() diff -r 119165543ce6 -r 915b81a35e46 mercurial/commands.py --- a/mercurial/commands.py Fri Mar 17 17:23:52 2006 -0800 +++ b/mercurial/commands.py Sat Mar 18 09:13:27 2006 +0100 @@ -1811,7 +1811,7 @@ ui.write("\n") if cleanup: - os.close(fd) + other.close() # explicit close for unlink os.unlink(cleanup) def init(ui, dest="."):