hgext/churn.py
changeset 3040 fe0e3508ec6e
parent 3039 2d35d7c6f251
child 3041 a10adb6a9c9c
child 3042 c0be8990e819
equal deleted inserted replaced
3039:2d35d7c6f251 3040:fe0e3508ec6e
    23         tn = mmap2 and repo.file(f).read(mmap2[f]) or None
    23         tn = mmap2 and repo.file(f).read(mmap2[f]) or None
    24 
    24 
    25         diff = mdiff.unidiff(to, "", tn, "", f).split("\n")
    25         diff = mdiff.unidiff(to, "", tn, "", f).split("\n")
    26 
    26 
    27         for line in diff:
    27         for line in diff:
    28             if not len(line):
    28             if not line:
    29                 continue # skip EOF
    29                 continue # skip EOF
    30             if line.startswith(" "):
    30             if line.startswith(" "):
    31                 continue # context line
    31                 continue # context line
    32             if line.startswith("--- ") or line.startswith("+++ "):
    32             if line.startswith("--- ") or line.startswith("+++ "):
    33                 continue # begining of diff
    33                 continue # begining of diff