Mercurial > hgsubversion
changeset 1487:b9530c171050 stable
editor: fix RevisionData to not leak temporary directories
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sun, 26 Jun 2016 21:06:50 -0400 |
parents | be8f446f94e5 |
children | 8d8fc10d0d0a |
files | hgsubversion/editor.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hgsubversion/editor.py +++ b/hgsubversion/editor.py @@ -106,6 +106,9 @@ class RevisionData(object): self.clear() def clear(self): + oldstore = getattr(self, 'store', None) + if oldstore is not None: + oldstore.close() self.store = FileStore(util.getfilestoresize(self.ui)) self.added = set() self.deleted = {}