equal
deleted
inserted
replaced
48 index[0] = tuple(e) |
48 index[0] = tuple(e) |
49 |
49 |
50 # add the magic null revision at -1 |
50 # add the magic null revision at -1 |
51 index.append((0, 0, 0, -1, -1, -1, -1, nullid)) |
51 index.append((0, 0, 0, -1, -1, -1, -1, nullid)) |
52 |
52 |
53 return index, nodemap, cache |
53 return index, cache |
54 |
54 |
55 |
55 |
56 data_inlined = '\x00\x01\x00\x01\x00\x00\x00\x00\x00\x00\x01\x8c' \ |
56 data_inlined = '\x00\x01\x00\x01\x00\x00\x00\x00\x00\x00\x01\x8c' \ |
57 '\x00\x00\x04\x07\x00\x00\x00\x00\x00\x00\x15\x15\xff\xff\xff' \ |
57 '\x00\x00\x04\x07\x00\x00\x00\x00\x00\x00\x15\x15\xff\xff\xff' \ |
58 '\xff\xff\xff\xff\xff\xebG\x97\xb7\x1fB\x04\xcf\x13V\x81\tw\x1b' \ |
58 '\xff\xff\xff\xff\xff\xebG\x97\xb7\x1fB\x04\xcf\x13V\x81\tw\x1b' \ |
95 '\x00\x00\x00\x00\x00\x00\x00\x00\x00' |
95 '\x00\x00\x00\x00\x00\x00\x00\x00\x00' |
96 |
96 |
97 def runtest() : |
97 def runtest() : |
98 |
98 |
99 py_res_1 = py_parseindex(data_inlined, True) |
99 py_res_1 = py_parseindex(data_inlined, True) |
100 c_res_1 = parsers.parse_index(data_inlined, True) |
100 c_res_1 = parsers.parse_index2(data_inlined, True) |
101 |
101 |
102 py_res_2 = py_parseindex(data_non_inlined, False) |
102 py_res_2 = py_parseindex(data_non_inlined, False) |
103 c_res_2 = parsers.parse_index(data_non_inlined, False) |
103 c_res_2 = parsers.parse_index2(data_non_inlined, False) |
104 |
104 |
105 if py_res_1 != c_res_1: |
105 if py_res_1 != c_res_1: |
106 print "Parse index result (with inlined data) differs!" |
106 print "Parse index result (with inlined data) differs!" |
107 |
107 |
108 if py_res_2 != c_res_2: |
108 if py_res_2 != c_res_2: |