# HG changeset patch # User Pierre-Yves David # Date 1524139284 -7200 # Node ID bda024010aed5ecf5e86508fef5790633d40da1f # Parent 50f1968724f040fe91352412d85287c89d092aa9 obscache: drop compat layer to access public changeset We can now access precomputed sets. (compat to 4.1 and 4.2 dropped) diff -r 50f1968724f0 -r bda024010aed hgext3rd/evolve/obscache.py --- a/hgext3rd/evolve/obscache.py Thu Apr 19 14:00:12 2018 +0200 +++ b/hgext3rd/evolve/obscache.py Thu Apr 19 14:01:24 2018 +0200 @@ -429,11 +429,7 @@ """the set of obsolete revisions""" obs = set() repo = repo.unfiltered() - if util.safehasattr(repo._phasecache, 'getrevset'): - notpublic = repo._phasecache.getrevset(repo, (phases.draft, phases.secret)) - else: - # < hg-4.2 compat - notpublic = repo.revs("not public()") + notpublic = repo._phasecache.getrevset(repo, (phases.draft, phases.secret)) if notpublic: obscache = repo.obsstore.obscache # Since we warm the cache at the end of every transaction, the cache