Mercurial > hg
changeset 3470:c6773b7ebee8
revlog.children: use parentrevs instead of parents
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Thu, 19 Oct 2006 10:23:27 +0200 |
parents | 33b6c8193652 |
children | be2bf7263276 |
files | mercurial/revlog.py |
diffstat | 1 files changed, 3 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlog.py Wed Oct 18 18:47:50 2006 -0300 +++ b/mercurial/revlog.py Thu Oct 19 10:23:27 2006 +0200 @@ -737,13 +737,9 @@ c = [] p = self.rev(node) for r in range(p + 1, self.count()): - n = self.node(r) - for pn in self.parents(n): - if pn == node: - c.append(n) - continue - elif pn == nullid: - continue + for pr in self.parentrevs(n): + if pr == p: + c.append(self.node(r)) return c def lookup(self, id):