Mercurial > hg > mercurial-crew-with-dirclash
comparison hgext/churn.py @ 3040:fe0e3508ec6e
[churn] Trivial cleanup
author | Josef "Jeff" Sipek <jeffpc@josefsipek.net> |
---|---|
date | Tue, 15 Aug 2006 06:15:06 -0400 |
parents | 2d35d7c6f251 |
children | a10adb6a9c9c c0be8990e819 |
comparison
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 |