--- a/obsolete.py Wed Sep 07 12:07:06 2011 +0200
+++ b/obsolete.py Wed Sep 07 12:08:24 2011 +0200
@@ -17,7 +17,7 @@
"""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
@@ -108,9 +108,11 @@
### 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>"""