# HG changeset patch # User Pierre-Yves David # Date 1490350842 -3600 # Node ID 16a5a37ced62d540b1c99f8581c9040bcb5b413c # Parent e922cd76804a6595e09d38c160743b4ac7858c36 stablerange: add some basic documentation about the cache diff --git a/hgext3rd/evolve/stablerange.py b/hgext3rd/evolve/stablerange.py --- a/hgext3rd/evolve/stablerange.py +++ b/hgext3rd/evolve/stablerange.py @@ -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