Mercurial > hgsubversion
diff hgsubversion/editor.py @ 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 | 759cafce6bec |
children | 9a6bb3657861 |
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 = {}