This fixes many many test failures in pure mode, but it appears to be a material behavior difference from the cext version. I tried adding this test:
def testindex0onemptyrevlog(self):
want = (0, 0, 0, -1, -1, -1, -1, nullid)
index, junk = parsers.parse_index2('', True)
got = index[0]
self.assertEqual(want, got)to test-parseindex2.py, and it fails on native (but passes --pure
after this patch). I'm unclear what the correct behavior *should* be,
but hopefully this guides someone to a fix...