transplant: remote bundle source was not closed before deleting the fetched bundle.
authorPatrick Mezard <pmezard@gmail.com>
Sun, 11 Feb 2007 18:37:23 +0100
changeset 4072 e916bc0dfdd6
parent 4071 165abe554c80
child 4073 95ffa36d1d2a
transplant: remote bundle source was not closed before deleting the fetched bundle. It fails under win32 because "normal" opened files cannot be removed.
hgext/transplant.py
--- a/hgext/transplant.py	Fri Feb 09 03:48:30 2007 -0200
+++ b/hgext/transplant.py	Sun Feb 11 18:37:23 2007 +0100
@@ -575,6 +575,7 @@
         tp.apply(repo, source, revmap, merges, opts)
     finally:
         if bundle:
+            source.close()
             os.unlink(bundle)
 
 cmdtable = {