# HG changeset patch # User Pierre-Yves David # Date 1513559849 -3600 # Node ID 4d054737a79c617c79cfcce82f4f7674c9a403d5 # Parent 86a03229d32dda51bf92b20ce96e2c0252988882 stablerange: have a mergepoint based sql backed class Everything is so generic that getting a class is 3 line of codes. diff -r 86a03229d32d -r 4d054737a79c hgext3rd/evolve/stablerangecache.py --- a/hgext3rd/evolve/stablerangecache.py Mon Dec 18 02:11:34 2017 +0100 +++ b/hgext3rd/evolve/stablerangecache.py Mon Dec 18 02:17:29 2017 +0100 @@ -272,6 +272,11 @@ def save(self, repo): self._save(repo) +class mergepointsql(stablerangesql, stablerange.stablerange_mergepoint): + + _schemaversion = 2 + _cachefile = 'cache/evoext_stablerange_v2.sqlite' + class sqlstablerange(stablerangesqlbase, stablerange.stablerange): _schemaversion = 1