changeset 38:7f7a62dac9ae

Fix
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Wed, 07 Sep 2011 12:08:24 +0200
parents 9493ffa68633
children b12655157ba0
files obsolete.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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>"""