mercurial/cffi/bdiff.py
changeset 49597 b2666e767029
parent 48875 6000f5b25c9b
child 49598 594fc56c0af7
equal deleted inserted replaced
49596:b8389533ba3a 49597:b2666e767029
    27         if not a[0] or not b[0]:
    27         if not a[0] or not b[0]:
    28             raise MemoryError
    28             raise MemoryError
    29         count = lib.bdiff_diff(a[0], an, b[0], bn, l)
    29         count = lib.bdiff_diff(a[0], an, b[0], bn, l)
    30         if count < 0:
    30         if count < 0:
    31             raise MemoryError
    31             raise MemoryError
    32         rl = [None] * count
    32         rl = [(0, 0, 0, 0)] * count
    33         h = l.next
    33         h = l.next
    34         i = 0
    34         i = 0
    35         while h:
    35         while h:
    36             rl[i] = (h.a1, h.a2, h.b1, h.b2)
    36             rl[i] = (h.a1, h.a2, h.b1, h.b2)
    37             h = h.next
    37             h = h.next