# HG changeset patch # User Pierre-Yves David # Date 1490377315 -3600 # Node ID c0e2ba85e76a83fd557328ef888386ef2dd8ca56 # Parent eadb1c69e3505f64e10ef159701d5fc7544123e6 stablerange: drop the cache on 'destroyed' if the repository have been strip, the cache is not usable as is. We could be smarter in the invalidation but that is a prototype anyway. G: changed hgext3rd/evolve/stablerange.py diff -r eadb1c69e350 -r c0e2ba85e76a hgext3rd/evolve/stablerange.py --- a/hgext3rd/evolve/stablerange.py Fri Mar 24 11:27:56 2017 +0100 +++ b/hgext3rd/evolve/stablerange.py Fri Mar 24 18:41:55 2017 +0100 @@ -670,4 +670,9 @@ def stablerange(self): return stablerange() + @localrepo.unfilteredmethod + def destroyed(self): + if 'stablerange' in vars(self): + del self.stablerange + repo.__class__ = stablerangerepo