mercurial/pure/bdiff.py
changeset 34435 5326e4ef1dab
parent 32512 0e8b0b9a7acc
child 36146 29dd37a418aa
equal deleted inserted replaced
34434:884b595f5195 34435:5326e4ef1dab
    58         s = "".join(b)
    58         s = "".join(b)
    59         return s and (struct.pack(">lll", 0, 0, len(s)) + s)
    59         return s and (struct.pack(">lll", 0, 0, len(s)) + s)
    60 
    60 
    61     bin = []
    61     bin = []
    62     p = [0]
    62     p = [0]
    63     for i in a: p.append(p[-1] + len(i))
    63     for i in a:
       
    64         p.append(p[-1] + len(i))
    64 
    65 
    65     d = difflib.SequenceMatcher(None, a, b).get_matching_blocks()
    66     d = difflib.SequenceMatcher(None, a, b).get_matching_blocks()
    66     d = _normalizeblocks(a, b, d)
    67     d = _normalizeblocks(a, b, d)
    67     la = 0
    68     la = 0
    68     lb = 0
    69     lb = 0