Mercurial > public > mercurial-scm > hg-stable
diff contrib/churn.py @ 5482:e5eedd74e70f
Use both the from and to name in mdiff.unidiff.
This fixes a compatibility issue with git diffs.
* * *
author | Dustin Sallings <dustin@spy.net> |
---|---|
date | Thu, 01 Nov 2007 12:17:59 -0700 |
parents | 041bd297f01e |
children | 083b6e3142a2 |
line wrap: on
line diff
--- a/contrib/churn.py Thu Nov 01 12:05:14 2007 +0100 +++ b/contrib/churn.py Thu Nov 01 12:17:59 2007 -0700 @@ -43,7 +43,7 @@ to = mmap1 and repo.file(f).read(mmap1[f]) or None tn = mmap2 and repo.file(f).read(mmap2[f]) or None - diff = mdiff.unidiff(to, "", tn, "", f).split("\n") + diff = mdiff.unidiff(to, "", tn, "", f, f).split("\n") for line in diff: if not line: