hgkw/keyword.py
branch0.9.2compat
changeset 400 4a28faccdb18
parent 399 5e1faca15e81
child 402 5e3707030bce
equal deleted inserted replaced
399:5e1faca15e81 400:4a28faccdb18
   180     webcommands.filediff = webcommands.diff = _kwweb_filediff
   180     webcommands.filediff = webcommands.diff = _kwweb_filediff
   181 
   181 
   182 except ImportError:
   182 except ImportError:
   183     from mercurial.hgweb.hgweb_mod import hgweb
   183     from mercurial.hgweb.hgweb_mod import hgweb
   184 
   184 
   185     def _kwweb_changeset(self, req):
   185     def _kwweb_do_changeset(self, req):
   186         try:
   186         try:
   187             _kwtemplater.matcher = util.never
   187             _kwtemplater.matcher = util.never
   188         except AttributeError:
   188         except AttributeError:
   189             pass
   189             pass
   190         req.write(self.changeset(self.changectx(req)))
   190         req.write(self.changeset(self.changectx(req)))
   191 
   191 
   192     def _kwweb_filediff(self, req):
   192     def _kwweb_do_filediff(self, req):
   193         try:
   193         try:
   194             _kwtemplater.matcher = util.never
   194             _kwtemplater.matcher = util.never
   195         except AttributeError:
   195         except AttributeError:
   196             pass
   196             pass
   197         req.write(self.filediff(self.filectx(req)))
   197         req.write(self.filediff(self.filectx(req)))
   198 
   198 
   199     hgweb.do_changeset = hgweb.do_rev = _kwweb_changeset
   199     hgweb.do_changeset = hgweb.do_rev = _kwweb_do_changeset
   200     hgweb.do_filediff = hgweb.do_diff = _kwweb_filediff
   200     hgweb.do_filediff = hgweb.do_diff = _kwweb_do_filediff
   201 
   201 
   202 try:
   202 try:
   203     # templatefilters module introduced in 9f1e6ab76069
   203     # templatefilters module introduced in 9f1e6ab76069
   204     from mercurial import templatefilters
   204     from mercurial import templatefilters
   205     template_filters = templatefilters.filters
   205     template_filters = templatefilters.filters