Mercurial > hg
comparison mercurial/revlog.py @ 3490:ceaa3fefc10c
Merge with crew
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 24 Oct 2006 13:46:04 -0500 |
parents | dba3cadef789 fd8f1110562c |
children | 0aef94f45ebf |
comparison
equal
deleted
inserted
replaced
3457:ff06fe0703ef | 3490:ceaa3fefc10c |
---|---|
735 def children(self, node): | 735 def children(self, node): |
736 """find the children of a given node""" | 736 """find the children of a given node""" |
737 c = [] | 737 c = [] |
738 p = self.rev(node) | 738 p = self.rev(node) |
739 for r in range(p + 1, self.count()): | 739 for r in range(p + 1, self.count()): |
740 n = self.node(r) | 740 for pr in self.parentrevs(r): |
741 for pn in self.parents(n): | 741 if pr == p: |
742 if pn == node: | 742 c.append(self.node(r)) |
743 c.append(n) | |
744 continue | |
745 elif pn == nullid: | |
746 continue | |
747 return c | 743 return c |
748 | 744 |
749 def _match(self, id): | 745 def _match(self, id): |
750 if isinstance(id, (long, int)): | 746 if isinstance(id, (long, int)): |
751 # rev | 747 # rev |