Merge with stable
authorChristian Ebert <blacktrash@gmx.net>
Mon, 03 Nov 2008 23:16:39 +0100
changeset 503 5cf987b0f3a1
parent 501 057aaae0f53e (current diff)
parent 502 6fccffd4059a (diff)
child 506 7d5c8c734b74
Merge with stable
--- a/hgkw/keyword.py	Thu Oct 23 10:25:24 2008 +0200
+++ b/hgkw/keyword.py	Mon Nov 03 23:16:39 2008 +0100
@@ -503,15 +503,15 @@
         # shrink keywords read from working dir
         self.lines = kwt.shrinklines(self.fname, self.lines)
 
-    def kw_diff(orig, repo, node1=None, node2=None, match=None,
-                fp=None, changes=None, opts=None):
+    def kw_diff(orig, repo, node1=None, node2=None, match=None, changes=None,
+                opts=None):
         '''Monkeypatch patch.diff to avoid expansion except when
         comparing against working dir.'''
         if node2 is not None:
             kwt.matcher = util.never
         elif node1 is not None and node1 != repo['.'].node():
             kwt.restrict = True
-        orig(repo, node1, node2, match, fp, changes, opts)
+        return orig(repo, node1, node2, match, changes, opts)
 
     def kwweb_skip(orig, web, req, tmpl):
         '''Wraps webcommands.x turning off keyword expansion.'''