Mercurial > evolve
changeset 2367:3be45918c7b5 stable
evolve: fixing obscache invalidation
This was missing a call to the parent's destroyed(), such that any transaction
after stripping some nodes would result in a crash (by attempting to read nodes
which were stripped).
author | Rodrigo Damazio Bovendorp <rdamazio@google.com> |
---|---|
date | Tue, 16 May 2017 23:37:10 -0700 |
parents | 5737e0680f10 |
children | a0099d568ef8 2ddbdc1bab13 |
files | README hgext3rd/evolve/obscache.py |
diffstat | 2 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/README Wed May 10 14:46:01 2017 +0200 +++ b/README Tue May 16 23:37:10 2017 -0700 @@ -118,6 +118,7 @@ - also enable the new cache (from 6.1.0) for 'evolve.server-only', - fix hg stack json output to be valid json - stack: now display if current revision is in bad state (issue5533) + - obscache: fix more cache invalidation propagation 6.1.0 -- 2017-05-03 -------------------
--- a/hgext3rd/evolve/obscache.py Wed May 10 14:46:01 2017 +0200 +++ b/hgext3rd/evolve/obscache.py Tue May 16 23:37:10 2017 -0700 @@ -381,6 +381,7 @@ def destroyed(self): if 'obsstore' in vars(self): self.obsstore.obscache.clear() + super(obscacherepo, self).destroyed() def transaction(self, *args, **kwargs): tr = super(obscacherepo, self).transaction(*args, **kwargs)