Commits

Pierre-Yves David  committed 1db801b

drop: divergence related code

It is now in code

  • Participants
  • Parent commits 2a2b8c9
  • Branches default

Comments (0)

Files changed (1)

File hgext/evolve.py

     return ctx.bumped()
 
 @eh.addattr(context.changectx, 'conflicting')
-@eh.addattr(context.changectx, 'divergent')
-def divergent(ctx):
+def conflicting(ctx):
     """is the changeset divergent (Try to succeed to public change)"""
-    if ctx.node() is None:
-        return False
-    return ctx.rev() in getrevs(ctx._repo, 'divergent')
+    return ctx.divergent()
 
 ### revset symbol
 
 eh.revset('latecomer')(revset.symbols['bumped'])
 
-@eh.revset('conflicting')
-@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 = getrevs(repo, 'divergent')
-    return [r for r in subset if r in conf]
+eh.revset('conflicting')(revset.symbols['divergent'])