hgext/churn.py
changeset 7308 b6f5490effbf
parent 7129 7e6a3bae0e8e
child 7369 87158be081b8
--- 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("--- ")):