changeset 2363:2ceb122fcc33

obshashrange: properly invalidate the cache on destroyed Copy paste is the scurge of code source.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 12 May 2017 20:52:19 +0200
parents 22c35d07ddb3
children 9b68e65fad4f
files hgext3rd/evolve/obsdiscovery.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/obsdiscovery.py	Fri May 12 20:49:27 2017 +0200
+++ b/hgext3rd/evolve/obsdiscovery.py	Fri May 12 20:52:19 2017 +0200
@@ -592,8 +592,8 @@
     class obshashrepo(repo.__class__):
         @localrepo.unfilteredmethod
         def destroyed(self):
-            if 'stablerange' in vars(self):
-                del self.stablerange
+            if 'obsstore' in vars(self):
+                self.obsstore.rangeobshashcache.clear()
             super(obshashrepo, self).destroyed()
 
     repo.__class__ = obshashrepo