# HG changeset patch # User Augie Fackler # Date 1466989610 14400 # Node ID b9530c171050562914f613d0f3a9ec2631b2f840 # Parent be8f446f94e56d333c9fdd2db382eef986b275e1 editor: fix RevisionData to not leak temporary directories diff --git a/hgsubversion/editor.py b/hgsubversion/editor.py --- 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 = {}