comparison hgext/transplant.py @ 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 863465381028
children e76e52145c3d
comparison
equal deleted inserted replaced
4071:165abe554c80 4072:e916bc0dfdd6
573 pulls = [] 573 pulls = []
574 574
575 tp.apply(repo, source, revmap, merges, opts) 575 tp.apply(repo, source, revmap, merges, opts)
576 finally: 576 finally:
577 if bundle: 577 if bundle:
578 source.close()
578 os.unlink(bundle) 579 os.unlink(bundle)
579 580
580 cmdtable = { 581 cmdtable = {
581 "transplant": 582 "transplant":
582 (transplant, 583 (transplant,