Mercurial > hg
diff mercurial/appendfile.py @ 2102:c62112815801
remove appendfile data as soon as not needed.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Wed, 19 Apr 2006 22:18:03 -0700 |
parents | cb99c711c59f |
children | d821918e3bee 9b42304d9896 |
line wrap: on
line diff
--- a/mercurial/appendfile.py Wed Apr 19 21:39:51 2006 +0200 +++ b/mercurial/appendfile.py Wed Apr 19 22:18:03 2006 -0700 @@ -131,14 +131,11 @@ fp = open(tmpname, 'rb') s = fp.read() fp.close() + os.unlink(tmpname) fp = self.realopener(name, 'a') fp.write(s) fp.close() - def __del__(self): - for tmpname in self.tmpnames.itervalues(): - os.unlink(tmpname) - # files for changelog and manifest are in different appendopeners, so # not mixed up together.