# HG changeset patch # User Pierre-Yves David # Date 1348757708 -7200 # Node ID cf116ffc9cc52db80e152eb9c96f51d239385ca4 # Parent 36de5e30d3ebfabb5b316bdb3768e23404d5935c evolve: new divergent revset diff -r 36de5e30d3eb -r cf116ffc9cc5 hgext/evolve.py --- a/hgext/evolve.py Thu Sep 27 16:40:25 2012 +0200 +++ b/hgext/evolve.py Thu Sep 27 16:55:08 2012 +0200 @@ -554,6 +554,15 @@ conf = getobscache(repo, 'conflicting') return [r for r in subset if r in conf] +@eh.revset('divergent') +def revsetdivergent(repo, subset, x): + """``divergent()`` + Changesets marked as successors of a same changeset. + """ + args = revset.getargs(x, 0, 0, 'divergent takes no arguments') + conf = getobscache(repo, 'conflicting') + return [r for r in subset if r in conf] + ### Discovery wrapping