hgext/keyword.py
branchstable
changeset 10116 4b514a70ea72
parent 9943 f8d779791161
child 10117 98867145f4b5
--- a/hgext/keyword.py	Wed Dec 23 13:09:11 2009 +0100
+++ b/hgext/keyword.py	Wed Dec 23 12:04:04 2009 +0000
@@ -536,7 +536,8 @@
     repo.__class__ = kwrepo
 
     extensions.wrapfunction(patch.patchfile, '__init__', kwpatchfile_init)
-    extensions.wrapfunction(patch, 'diff', kw_diff)
+    if not kwt.restrict:
+        extensions.wrapfunction(patch, 'diff', kw_diff)
     for c in 'annotate changeset rev filediff diff'.split():
         extensions.wrapfunction(webcommands, c, kwweb_skip)