Show More
@@ -176,6 +176,19 b' class revlog:' | |||||
176 | p[pn] = 1 |
|
176 | p[pn] = 1 | |
177 | return h |
|
177 | return h | |
178 |
|
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 | |||
|
191 | ||||
179 | def lookup(self, id): |
|
192 | def lookup(self, id): | |
180 | try: |
|
193 | try: | |
181 | rev = int(id) |
|
194 | rev = int(id) |
General Comments 0
You need to be logged in to leave comments.
Login now