Commits

Pierre-Yves David  committed ea4aa18

obsolete: add an extinct property on context

  • Participants
  • Parent commits cd94074

Comments (0)

Files changed (1)

File hgext/obsolete.py

 
 context.changectx.unstable = unstable
 
+def extinct(ctx):
+    """is the changeset extinct by other"""
+    if ctx.node() is None:
+        return False
+    return ctx.rev() in ctx._repo._extinctset
+
+context.changectx.extinct = extinct
+
 
 ### revset
 #############################