Mercurial > hg
diff tests/test-rust-ancestor.py @ 51240:59d81768ad6d
rust-index: using `hg::index::Index` in MissingAncestors
With this, the whole `hg-cpython::ancestors` module can now work without
the C index.
author | Georges Racinet on incendie.racinet.fr <georges@racinet.fr> |
---|---|
date | Sat, 28 Oct 2023 22:50:10 +0200 |
parents | 7eea2e4109ae |
children | 578c049f0408 |
line wrap: on
line diff
--- a/tests/test-rust-ancestor.py Fri Oct 27 22:11:05 2023 +0200 +++ b/tests/test-rust-ancestor.py Sat Oct 28 22:50:10 2023 +0200 @@ -93,7 +93,7 @@ self.assertFalse(LazyAncestors(idx, [0], 0, False)) def testmissingancestors(self): - idx = self.parseindex() + idx = self.parserustindex() missanc = MissingAncestors(idx, [1]) self.assertTrue(missanc.hasbases()) self.assertEqual(missanc.missingancestors([3]), [2, 3]) @@ -103,7 +103,7 @@ self.assertEqual(missanc.basesheads(), {2}) def testmissingancestorsremove(self): - idx = self.parseindex() + idx = self.parserustindex() missanc = MissingAncestors(idx, [1]) revs = {0, 1, 2, 3} missanc.removeancestorsfrom(revs)