Commits

Pierre-Yves David committed ea4aa18

obsolete: add an extinct property on context

Comments (0)

Files changed (1)

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
 #############################