Mercurial > hg-stable
changeset 8110:b616f328af9f
switch dircleanup in mercurial.hg.clone from gc based to explicit
author | Ronny Pfannschmidt <Ronny.Pfannschmidt@gmx.de> |
---|---|
date | Wed, 22 Apr 2009 02:01:22 +0200 |
parents | 496ae1ea4698 |
children | dbf20df40eb1 |
files | mercurial/hg.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hg.py Wed Apr 22 02:01:22 2009 +0200 +++ b/mercurial/hg.py Wed Apr 22 02:01:22 2009 +0200 @@ -143,7 +143,7 @@ self.dir_ = dir_ def close(self): self.dir_ = None - def __del__(self): + def cleanup(self): if self.dir_: self.rmtree(self.dir_, True) @@ -251,7 +251,8 @@ return src_repo, dest_repo finally: release(src_lock, dest_lock) - del dir_cleanup + if dir_cleanup is not None: + dir_cleanup.cleanup() def _showstats(repo, stats): stats = ((stats[0], _("updated")),