Show More
@@ -260,11 +260,15 b' class mercurial_source(converter_source)' | |||
|
260 | 260 | % startnode) |
|
261 | 261 | startrev = self.repo.changelog.rev(startnode) |
|
262 | 262 | children = {startnode: 1} |
|
263 |
for r |
|
|
264 |
children[self.repo.changelog.node(r |
|
|
263 | for r in self.repo.changelog.descendants([startrev]): | |
|
264 | children[self.repo.changelog.node(r)] = 1 | |
|
265 | 265 | self.keep = children.__contains__ |
|
266 | 266 | else: |
|
267 | 267 | self.keep = util.always |
|
268 | if rev: | |
|
269 | self._heads = [self.repo[rev].node()] | |
|
270 | else: | |
|
271 | self._heads = self.repo.heads() | |
|
268 | 272 | |
|
269 | 273 | def changectx(self, rev): |
|
270 | 274 | if self.lastrev != rev: |
@@ -276,11 +280,7 b' class mercurial_source(converter_source)' | |||
|
276 | 280 | return [p for p in ctx.parents() if p and self.keep(p.node())] |
|
277 | 281 | |
|
278 | 282 | def getheads(self): |
|
279 | if self.rev: | |
|
280 | heads = [self.repo[self.rev].node()] | |
|
281 | else: | |
|
282 | heads = self.repo.heads() | |
|
283 | return [hex(h) for h in heads if self.keep(h)] | |
|
283 | return [hex(h) for h in self._heads if self.keep(h)] | |
|
284 | 284 | |
|
285 | 285 | def getfile(self, name, rev): |
|
286 | 286 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now