# HG changeset patch # User Pierre-Yves David # Date 1494615139 -7200 # Node ID 2ceb122fcc33aedddde2b778b3980b2a2b794bd0 # Parent 22c35d07ddb373b5e2a72bbf19ebf15d45909793 obshashrange: properly invalidate the cache on destroyed Copy paste is the scurge of code source. diff -r 22c35d07ddb3 -r 2ceb122fcc33 hgext3rd/evolve/obsdiscovery.py --- 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