# HG changeset patch # User Pierre-Yves David # Date 1496147246 -7200 # Node ID 333de672c7f0968036fe3c81d6b5280eae3d2c2d # Parent 0e6ae8db9c21f082667ba9bd1a15415bb7e837db obsdiscovery: directly use the 'only' revset for obshashtree The revset now exists and is fast. This remove the needs to hold a reference to "revs" in that code. diff -r 0e6ae8db9c21 -r 333de672c7f0 hgext3rd/evolve/obsdiscovery.py --- a/hgext3rd/evolve/obsdiscovery.py Tue May 30 14:21:10 2017 +0200 +++ b/hgext3rd/evolve/obsdiscovery.py Tue May 30 14:27:26 2017 +0200 @@ -877,7 +877,7 @@ else: common = findcommonobsmarkers(pushop.ui, unfi, pushop.remote, commonrevs) - revs = list(unfi.revs('%ld - (::%ln)', revs, common)) + revs = list(unfi.revs('only(%ln, %ln)', pushop.futureheads, common)) nodes = [cl.node(r) for r in revs] if nodes: