[PATCH] transplant: remote bundle source was not closed before deleting the fetched bundle
Patrick Mezard
pmezard at gmail.com
Sun Feb 11 17:42:49 UTC 2007
# HG changeset patch
# User Patrick Mezard <pmezard at gmail.com>
# Date 1171215443 -3600
# Node ID 1602d69c818be17241bd0ac298f7be66e818a8eb
# Parent 5b1f663ef86d68ce11d70de8e5ab61d93341a18c
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 5b1f663ef86d -r 1602d69c818b hgext/transplant.py
--- a/hgext/transplant.py Tue Feb 06 16:12:22 2007 -0600
+++ b/hgext/transplant.py Sun Feb 11 18:37:23 2007 +0100
@@ -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 = {
More information about the Mercurial-devel
mailing list