Mercurial > evolve
changeset 436:1e042eeb2d1a
obsolete: remove unused repo method
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Tue, 07 Aug 2012 14:38:28 +0200 |
parents | 97d82fbd2c24 |
children | 48ac58354b7b |
files | hgext/obsolete.py |
diffstat | 1 files changed, 0 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/obsolete.py Tue Aug 07 14:34:25 2012 +0200 +++ b/hgext/obsolete.py Tue Aug 07 14:38:28 2012 +0200 @@ -781,7 +781,6 @@ opush = repo.push o_updatebranchcache = repo.updatebranchcache - o_writejournal = repo._writejournal o_hook = repo.hook @@ -794,20 +793,6 @@ args.pop('old') return o_hook(name, throw=False, **args) - ### Public method - # XXX Kill me - def obsoletedby(self, node): - """return the set of node that make <node> obsolete (obj)""" - others = set() - for marker in self.obsstore.precursors.get(node, []): - others.update(marker[1]) - return others - - # XXX Kill me - def obsolete(self, node): - """return the set of node that <node> make obsolete (sub)""" - return set(marker[0] for marker in self.obsstore.successors.get(node, [])) - # XXX move me on obssotre @util.propertycache def _obsoleteset(self):