diff -r 56380212d630 -r b6f5490effbf hgext/churn.py --- a/hgext/churn.py Mon Nov 03 16:31:47 2008 +0100 +++ b/hgext/churn.py Mon Nov 03 16:48:23 2008 +0100 @@ -44,9 +44,7 @@ def changedlines(ui, repo, ctx1, ctx2): lines = 0 - ui.pushbuffer() - patch.diff(repo, ctx1.node(), ctx2.node()) - diff = ui.popbuffer() + diff = ''.join(patch.diff(repo, ctx1.node(), ctx2.node())) for l in diff.split('\n'): if (l.startswith("+") and not l.startswith("+++ ") or l.startswith("-") and not l.startswith("--- ")):