hgkw/keyword.py
changeset 667 52b03aad673b
parent 665 06ccaeb6cfc1
child 668 13a6a2c0440f
equal deleted inserted replaced
666:dead519e4ec6 667:52b03aad673b
   535         return orig(web, req, tmpl)
   535         return orig(web, req, tmpl)
   536 
   536 
   537     repo.__class__ = kwrepo
   537     repo.__class__ = kwrepo
   538 
   538 
   539     extensions.wrapfunction(patch.patchfile, '__init__', kwpatchfile_init)
   539     extensions.wrapfunction(patch.patchfile, '__init__', kwpatchfile_init)
   540     extensions.wrapfunction(patch, 'diff', kw_diff)
   540     if not kwt.restrict:
       
   541         extensions.wrapfunction(patch, 'diff', kw_diff)
   541     for c in 'annotate changeset rev filediff diff'.split():
   542     for c in 'annotate changeset rev filediff diff'.split():
   542         extensions.wrapfunction(webcommands, c, kwweb_skip)
   543         extensions.wrapfunction(webcommands, c, kwweb_skip)
   543 
   544 
   544 cmdtable = {
   545 cmdtable = {
   545     'kwdemo':
   546     'kwdemo':