mercurial/setdiscovery.py
changeset 41882 c98420914c10
parent 41881 e514799e4e07
child 41883 1f069f37e601
equal deleted inserted replaced
41881:e514799e4e07 41882:c98420914c10
   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):