evolve: fixing obscache invalidation stable
authorRodrigo Damazio Bovendorp <rdamazio@google.com>
Tue, 16 May 2017 23:37:10 -0700
branchstable
changeset 2367 3be45918c7b5
parent 2348 5737e0680f10
child 2372 a0099d568ef8
child 2384 2ddbdc1bab13
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).
README
hgext3rd/evolve/obscache.py
--- 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)