Commits

Pierre-Yves David committed 7f7a62d

Fix

Comments (0)

Files changed (1)

     """is the changeset obsolete by other"""
     if ctx.node()is None:
         return False
-    return boolean(ctx._repo.obsoleteby(ctx.node()))
+    return bool(ctx._repo.obsoletedby(ctx.node()))
 
 context.changectx.obsolete = obsolete
 
         ### Public method
         def obsoletedby(self, node):
             """return the set of node that make <node> obsolete (obj)"""
+            return self._obsobjrels.get(node, set())
 
         def obsolete(self, node):
             """return the set of node that <node> make obsolete (sub)"""
+            return self._obssubrels.get(node, set())
 
         def addobsolete(self, sub, obj):
             """Add a relation marking that node <sub> is a new version of <obj>"""