Mercurial > public > mercurial-scm > hg-stable
diff tests/test-parseindex2.py @ 13254:5ef5eb1f3515
revlog: only build the nodemap on demand
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 11 Jan 2011 17:01:04 -0600 |
parents | 61c9bc3da402 |
children | 2cdd7e63211b |
line wrap: on
line diff
--- a/tests/test-parseindex2.py Tue Jan 04 14:12:52 2011 -0600 +++ b/tests/test-parseindex2.py Tue Jan 11 17:01:04 2011 -0600 @@ -50,7 +50,7 @@ # add the magic null revision at -1 index.append((0, 0, 0, -1, -1, -1, -1, nullid)) - return index, nodemap, cache + return index, cache data_inlined = '\x00\x01\x00\x01\x00\x00\x00\x00\x00\x00\x01\x8c' \ @@ -97,10 +97,10 @@ def runtest() : py_res_1 = py_parseindex(data_inlined, True) - c_res_1 = parsers.parse_index(data_inlined, True) + c_res_1 = parsers.parse_index2(data_inlined, True) py_res_2 = py_parseindex(data_non_inlined, False) - c_res_2 = parsers.parse_index(data_non_inlined, False) + c_res_2 = parsers.parse_index2(data_non_inlined, False) if py_res_1 != c_res_1: print "Parse index result (with inlined data) differs!"