comparison tests/test-revlog-ancestry.py.out @ 18081:f88c60e740a1

revlog.ancestors: add support for including revs This is in preparation for an upcoming refactoring. This also fixes a bug in incancestors, where if an element of revs was an ancestor of another it would be generated twice.
author Siddharth Agarwal <sid0@fb.com>
date Mon, 17 Dec 2012 15:13:51 -0800
parents eb88ed4269c5
children b6db2e80a9ce
comparison
equal deleted inserted replaced
18080:486bfb200b3f 18081:f88c60e740a1
4 3 4 2 1 0 4 3 4 2 1 0
5 Ancestors of 5 and 4 5 Ancestors of 5 and 4
6 4 2 0 6 4 2 0
7 Ancestors of 7, stop at 6 7 Ancestors of 7, stop at 6
8 6 8 6
9 Ancestors of 7, including revs
10 7 6 5 3 4 2 1 0
11 Ancestors of 7, 5 and 3, including revs
12 7 5 3 6 4 2 1 0
9 13
10 Descendants of 5 14 Descendants of 5
11 7 8 15 7 8
12 Descendants of 5 and 3 16 Descendants of 5 and 3
13 6 7 8 17 6 7 8