obshashrange: properly invalidate the cache on destroyed
Copy paste is the scurge of code source.
--- 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