changeset 4072:e916bc0dfdd6

transplant: remote bundle source was not closed before deleting the fetched bundle. It fails under win32 because "normal" opened files cannot be removed.
author Patrick Mezard <pmezard@gmail.com>
date Sun, 11 Feb 2007 18:37:23 +0100
parents 165abe554c80
children 95ffa36d1d2a
files hgext/transplant.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 = {