stablerange: rename the class
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 22 Mar 2017 21:11:35 +0100
changeset 2200 d5a216dce71c
parent 2199 7da7c8c9169d
child 2201 8d371329e8b9
stablerange: rename the class This is much more than just a cache now.
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