Fix
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Wed, 07 Sep 2011 12:08:24 +0200
changeset 38 7f7a62dac9ae
parent 37 9493ffa68633
child 39 b12655157ba0
Fix
obsolete.py
--- 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>"""