Show More
@@ -175,6 +175,19 b' class revlog:' | |||||
175 | for pn in self.parents(n): |
|
175 | for pn in self.parents(n): | |
176 | p[pn] = 1 |
|
176 | p[pn] = 1 | |
177 | return h |
|
177 | return h | |
|
178 | ||||
|
179 | def children(self, node): | |||
|
180 | c = [] | |||
|
181 | p = self.rev(node) | |||
|
182 | for r in range(p + 1, self.count()): | |||
|
183 | n = self.node(r) | |||
|
184 | for pn in self.parents(n): | |||
|
185 | if pn == p: | |||
|
186 | c.append(p) | |||
|
187 | continue | |||
|
188 | elif pn == nullid: | |||
|
189 | continue | |||
|
190 | return c | |||
178 |
|
191 | |||
179 | def lookup(self, id): |
|
192 | def lookup(self, id): | |
180 | try: |
|
193 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now