[PATCH] transplant: remote bundle source was not closed before deleting the fetched bundle

Brendan Cully brendan at kublai.com
Sun Feb 11 22:28:48 UTC 2007


Pushed to crew, thanks.

On Sunday, 11 February 2007 at 18:42, Patrick Mezard wrote:
> # 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
> +++ 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