hgext/transplant.py
changeset 4072 e916bc0dfdd6
parent 4049 863465381028
child 4251 e76e52145c3d
--- a/hgext/transplant.py
+++ b/hgext/transplant.py
@@ -575,6 +575,7 @@ def transplant(ui, repo, *revs, **opts):
         tp.apply(repo, source, revmap, merges, opts)
     finally:
         if bundle:
+            source.close()
             os.unlink(bundle)
 
 cmdtable = {