##// END OF EJS Templates
ancestors: ensure a consistent order even in the "inclusive" case...
ancestors: ensure a consistent order even in the "inclusive" case It seems odds to first issue the "source" revs and then the other ancestors. In addition, doing so can break the other contract of always issuing a child before its parent. We update the code to apply the same logic to all yielded revision. No tests break so we seem in the clear except where we explicitly test the order.

File last commit:

r39510:a60dae06 default
r39510:a60dae06 default
Show More
test-ancestor.py.out
18 lines | 686 B | text/plain | TextLexer
/ tests / test-ancestor.py.out
Siddharth Agarwal
ancestor: add lazy membership testing to lazyancestors...
r18091 % lazy ancestor set for [], stoprev = 0, inclusive = False
Siddharth Agarwal
test-ancestor: test iteration for lazyancestors...
r23329 membership: []
iteration: []
Siddharth Agarwal
ancestor: add lazy membership testing to lazyancestors...
r18091 % lazy ancestor set for [11, 13], stoprev = 0, inclusive = False
Siddharth Agarwal
test-ancestor: test iteration for lazyancestors...
r23329 membership: [7, 8, 3, 4, 1, 0]
Boris Feld
ancestors: actually iterate over ancestors in topological order (issue5979)...
r39509 iteration: [8, 7, 4, 3, 2, 1, 0]
Pierre-Yves David
test-ancestor: add a test for `ancestor` with ancestry within the initset...
r22355 % lazy ancestor set for [1, 3], stoprev = 0, inclusive = False
Siddharth Agarwal
test-ancestor: test iteration for lazyancestors...
r23329 membership: [1, 0]
Boris Feld
ancestors: actually iterate over ancestors in topological order (issue5979)...
r39509 iteration: [1, 0]
Siddharth Agarwal
ancestor: add lazy membership testing to lazyancestors...
r18091 % lazy ancestor set for [11, 13], stoprev = 0, inclusive = True
Siddharth Agarwal
test-ancestor: test iteration for lazyancestors...
r23329 membership: [11, 13, 7, 8, 3, 4, 1, 0]
Boris Feld
ancestors: ensure a consistent order even in the "inclusive" case...
r39510 iteration: [13, 11, 8, 7, 4, 3, 2, 1, 0]
Siddharth Agarwal
ancestor: add lazy membership testing to lazyancestors...
r18091 % lazy ancestor set for [11, 13], stoprev = 6, inclusive = False
Siddharth Agarwal
test-ancestor: test iteration for lazyancestors...
r23329 membership: [7, 8]
Boris Feld
ancestors: actually iterate over ancestors in topological order (issue5979)...
r39509 iteration: [8, 7]
Siddharth Agarwal
ancestor: add lazy membership testing to lazyancestors...
r18091 % lazy ancestor set for [11, 13], stoprev = 6, inclusive = True
Siddharth Agarwal
test-ancestor: test iteration for lazyancestors...
r23329 membership: [11, 13, 7, 8]
Boris Feld
ancestors: ensure a consistent order even in the "inclusive" case...
r39510 iteration: [13, 11, 8, 7]