Mercurial > hg
diff tests/test-ancestor.py.out @ 39474:a60dae060bc8
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.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Thu, 06 Sep 2018 19:37:38 -0400 |
parents | b6db2e80a9ce |
children | 431068d7e9db |
line wrap: on
line diff
--- a/tests/test-ancestor.py.out Thu Sep 06 17:00:28 2018 -0400 +++ b/tests/test-ancestor.py.out Thu Sep 06 19:37:38 2018 -0400 @@ -9,10 +9,10 @@ iteration: [1, 0] % lazy ancestor set for [11, 13], stoprev = 0, inclusive = True membership: [11, 13, 7, 8, 3, 4, 1, 0] -iteration: [11, 13, 8, 7, 4, 3, 2, 1, 0] +iteration: [13, 11, 8, 7, 4, 3, 2, 1, 0] % lazy ancestor set for [11, 13], stoprev = 6, inclusive = False membership: [7, 8] iteration: [8, 7] % lazy ancestor set for [11, 13], stoprev = 6, inclusive = True membership: [11, 13, 7, 8] -iteration: [11, 13, 8, 7] +iteration: [13, 11, 8, 7]