view tests/test-revlog-ancestry.py.out @ 12948:de6a28ff5ffc

mq: use sets instead of lists for speed The code eventually converts data through sets to ensure unicity: do it earlier to allow faster __contains__ lookups and avoid `del l[l.index(x)]` kind of code.
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Sun, 07 Nov 2010 22:03:28 +0900
parents c7cc40fd74f6
children eb88ed4269c5
line wrap: on
line source

Ancestors of 5
4 2 0 
Ancestors of 6 and 5
3 4 2 1 0 
Ancestors of 5 and 4
4 2 0 

Descendants of 5
7 8 
Descendants of 5 and 3
6 7 8 
Descendants of 5 and 4
5 7 8