mercurial/bundlerepo.py
branchstable
changeset 12962 ff083040a555
parent 12961 ad63e5f834e1
child 13274 57d433f632b7
--- a/mercurial/bundlerepo.py	Wed Nov 10 15:38:00 2010 +0100
+++ b/mercurial/bundlerepo.py	Sun Nov 07 20:18:57 2010 +0100
@@ -249,6 +249,8 @@
     def close(self):
         """Close assigned bundle file immediately."""
         self.bundle.close()
+        if self.tempfile is not None:
+            os.unlink(self.tempfile)
 
     def __del__(self):
         del self.bundle