contrib/fuzz/revlog.cc
changeset 41310 ebe51a2e75be
parent 41309 afc33a5705b9
child 43151 36e386dbbd30
equal deleted inserted replaced
41309:afc33a5705b9 41310:ebe51a2e75be
    17 	code = (PyCodeObject *)Py_CompileString(R"py(
    17 	code = (PyCodeObject *)Py_CompileString(R"py(
    18 from parsers import parse_index2
    18 from parsers import parse_index2
    19 for inline in (True, False):
    19 for inline in (True, False):
    20     try:
    20     try:
    21         index, cache = parse_index2(data, inline)
    21         index, cache = parse_index2(data, inline)
       
    22         index.slicechunktodensity(list(range(len(index))), 0.5, 262144)
       
    23         for rev in range(len(index)):
       
    24             node = index[rev][7]
       
    25             partial = index.shortest(node)
       
    26             index.partialmatch(node[:partial])
    22     except Exception as e:
    27     except Exception as e:
    23         pass
    28         pass
    24         # uncomment this print if you're editing this Python code
    29         # uncomment this print if you're editing this Python code
    25         # to debug failures.
    30         # to debug failures.
    26         # print e
    31         # print e