stablerange: add some basic documentation about the cache
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Fri, 24 Mar 2017 11:20:42 +0100
changeset 2234 16a5a37ced62
parent 2233 e922cd76804a
child 2235 eadb1c69e350
stablerange: add some basic documentation about the cache
hgext3rd/evolve/stablerange.py
--- a/hgext3rd/evolve/stablerange.py	Fri Mar 24 11:18:01 2017 +0100
+++ b/hgext3rd/evolve/stablerange.py	Fri Mar 24 11:20:42 2017 +0100
@@ -225,9 +225,10 @@
 class stablerange(object):
 
     def __init__(self):
+        # cache the 'depth' of a changeset, the size of '::rev'
         self._depthcache = {}
+        # cache the standard stable subranges or a range
         self._subrangescache = {}
-
         # To slices merge, we need to walk their descendant in reverse stable
         # sort order. For now we perform a full stable sort their descendant
         # and then use the relevant top most part. This order is going to be