Show More
@@ -91,6 +91,10 b' def test_lazyancestors():' | |||
|
91 | 91 | s = genlazyancestors([11, 13]) |
|
92 | 92 | printlazyancestors(s, [11, 13, 7, 9, 8, 3, 6, 4, 1, -1, 0]) |
|
93 | 93 | |
|
94 | # Standard with ancestry in the initial set (1 is ancestor of 3) | |
|
95 | s = genlazyancestors([1, 3]) | |
|
96 | printlazyancestors(s, [1, -1, 0]) | |
|
97 | ||
|
94 | 98 | # Including revs |
|
95 | 99 | s = genlazyancestors([11, 13], inclusive=True) |
|
96 | 100 | printlazyancestors(s, [11, 13, 7, 9, 8, 3, 6, 4, 1, -1, 0]) |
@@ -38,6 +38,8 b'' | |||
|
38 | 38 | [] |
|
39 | 39 | % lazy ancestor set for [11, 13], stoprev = 0, inclusive = False |
|
40 | 40 | [7, 8, 3, 4, 1, 0] |
|
41 | % lazy ancestor set for [1, 3], stoprev = 0, inclusive = False | |
|
42 | [1, 0] | |
|
41 | 43 | % lazy ancestor set for [11, 13], stoprev = 0, inclusive = True |
|
42 | 44 | [11, 13, 7, 8, 3, 4, 1, 0] |
|
43 | 45 | % lazy ancestor set for [11, 13], stoprev = 6, inclusive = False |
General Comments 0
You need to be logged in to leave comments.
Login now