##// END OF EJS Templates
test-ancestor: add a test for `ancestor` with ancestry within the initset...
Pierre-Yves David -
r22355:731b2a90 default
parent child Browse files
Show More
@@ -91,6 +91,10 b' def test_lazyancestors():'
91 s = genlazyancestors([11, 13])
91 s = genlazyancestors([11, 13])
92 printlazyancestors(s, [11, 13, 7, 9, 8, 3, 6, 4, 1, -1, 0])
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 # Including revs
98 # Including revs
95 s = genlazyancestors([11, 13], inclusive=True)
99 s = genlazyancestors([11, 13], inclusive=True)
96 printlazyancestors(s, [11, 13, 7, 9, 8, 3, 6, 4, 1, -1, 0])
100 printlazyancestors(s, [11, 13, 7, 9, 8, 3, 6, 4, 1, -1, 0])
@@ -38,6 +38,8 b''
38 []
38 []
39 % lazy ancestor set for [11, 13], stoprev = 0, inclusive = False
39 % lazy ancestor set for [11, 13], stoprev = 0, inclusive = False
40 [7, 8, 3, 4, 1, 0]
40 [7, 8, 3, 4, 1, 0]
41 % lazy ancestor set for [1, 3], stoprev = 0, inclusive = False
42 [1, 0]
41 % lazy ancestor set for [11, 13], stoprev = 0, inclusive = True
43 % lazy ancestor set for [11, 13], stoprev = 0, inclusive = True
42 [11, 13, 7, 8, 3, 4, 1, 0]
44 [11, 13, 7, 8, 3, 4, 1, 0]
43 % lazy ancestor set for [11, 13], stoprev = 6, inclusive = False
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