# HG changeset patch # User Pierre-Yves David # Date 1512874702 -3600 # Node ID 318c938be80d9d40f595841bba5d00471a1b6531 # Parent f890d27df766a6acc15c006897e2f40eab01c9f3 stablerange: drop the basic inheritance from the 'mergepoint' version All necessary bits are implemented now (except for warmup which we explicitly bypass for now). diff -r f890d27df766 -r 318c938be80d hgext3rd/evolve/stablerange.py --- a/hgext3rd/evolve/stablerange.py Sun Dec 10 12:12:12 2017 +0100 +++ b/hgext3rd/evolve/stablerange.py Sun Dec 10 03:58:22 2017 +0100 @@ -331,7 +331,7 @@ This mostly exist to help the on disk persistence.""" self._subrangescache[rev] = value -class stablerange_mergepoint(stablerangecached, stablerangebasic): +class stablerange_mergepoint(stablerangecached): """Stablerange implementation using 'mergepoint' based sorting """ @@ -339,8 +339,9 @@ self._sortcache = stablesort.stablesortcache() super(stablerange_mergepoint, self).__init__() - def _sortfunction(self, repo, headrev): - return self._sortcache.get(repo, headrev) + def warmup(self, repo, upto=None): + # no cache to warm for basic implementation + pass def revsfromrange(self, repo, rangeid): """return revision contained in a range