Commits

Pierre-Yves David  committed cf116ff

evolve: new divergent revset

  • Participants
  • Parent commits 36de5e3
  • Branches stable

Comments (0)

Files changed (1)

File hgext/evolve.py

     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