# HG changeset patch # User Pierre-Yves David # Date 1494614967 -7200 # Node ID 22c35d07ddb373b5e2a72bbf19ebf15d45909793 # Parent 5c5f982b98f794a016af10537aa0e7d2abc19bd3 obshashrange: properly drop the current connection on clear diff -r 5c5f982b98f7 -r 22c35d07ddb3 hgext3rd/evolve/obsdiscovery.py --- a/hgext3rd/evolve/obsdiscovery.py Fri May 12 20:40:00 2017 +0200 +++ b/hgext3rd/evolve/obsdiscovery.py Fri May 12 20:49:27 2017 +0200 @@ -430,12 +430,14 @@ def clear(self, reset=False): self._valid = False - super(_obshashcache, self).clear(reset=reset) if reset: con = self._con if con is not None: con.execute(_reset) + super(_obshashcache, self).clear(reset=reset) self._new.clear() + if not reset and '_con' in vars(self): + del self._con def get(self, rangeid): # revision should be covered by out tiprev