Mercurial > hg > mutable-history
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 +++ b/obsolete.py @@ -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>"""