# HG changeset patch # User Pierre-Yves David # Date 1490213495 -3600 # Node ID d5a216dce71cf83841aa0bfce51f8177b762c838 # Parent 7da7c8c9169d7b95175075ede7fae8a501f6a339 stablerange: rename the class This is much more than just a cache now. diff -r 7da7c8c9169d -r d5a216dce71c hgext3rd/evolve/stablerange.py --- a/hgext3rd/evolve/stablerange.py Thu Mar 23 09:40:04 2017 +0100 +++ b/hgext3rd/evolve/stablerange.py Wed Mar 22 21:11:35 2017 +0100 @@ -153,7 +153,7 @@ ranges.sort(key=lambda r: (-rangelength(repo, r), n(r[0]))) return ranges -class stablerangecache(object): +class stablerange(object): def __init__(self): self._depthcache = {} @@ -398,6 +398,6 @@ @localrepo.unfilteredpropertycache def stablerange(self): - return stablerangecache() + return stablerange() repo.__class__ = stablerangerepo