# HG changeset patch # User Patrick Mezard # Date 1171215443 -3600 # Node ID e916bc0dfdd6f0f2529ef69827b38e77efd392c4 # Parent 165abe554c80fcd4b1f2fa4db1ad15ab56ce67ea transplant: remote bundle source was not closed before deleting the fetched bundle. It fails under win32 because "normal" opened files cannot be removed. diff -r 165abe554c80 -r e916bc0dfdd6 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 = {