equal
deleted
inserted
replaced
214 # Because this function can be called multiple times during discovery, |
214 # Because this function can be called multiple times during discovery, |
215 # we may still perform redundant work and there is room to optimize |
215 # we may still perform redundant work and there is room to optimize |
216 # this by keeping a persistent cache of children across invocations. |
216 # this by keeping a persistent cache of children across invocations. |
217 children = {} |
217 children = {} |
218 |
218 |
219 for rev in repo.changelog.revs(start=min(revsroots)): |
219 for rev in sorted(revs): |
220 # Always ensure revision has an entry so we don't need to worry |
220 # Always ensure revision has an entry so we don't need to worry |
221 # about missing keys. |
221 # about missing keys. |
222 children.setdefault(rev, []) |
222 children.setdefault(rev, []) |
223 |
223 |
224 for prev in parentrevs(rev): |
224 for prev in parentrevs(rev): |