hgext/keyword.py
changeset 36880 67fb0dca29bc
parent 36876 97f44b0720e2
child 36887 4daa22071d5d
equal deleted inserted replaced
36879:9675147aec06 36880:67fb0dca29bc
   619     kwt = getattr(web.repo, '_keywordkwt', None)
   619     kwt = getattr(web.repo, '_keywordkwt', None)
   620     if kwt:
   620     if kwt:
   621         origmatch = kwt.match
   621         origmatch = kwt.match
   622         kwt.match = util.never
   622         kwt.match = util.never
   623     try:
   623     try:
   624         res = orig(web, req, tmpl)
   624         for chunk in orig(web, req, tmpl):
   625         if res is web.res:
       
   626             res = res.sendresponse()
       
   627         elif res is True:
       
   628             return
       
   629 
       
   630         for chunk in res:
       
   631             yield chunk
   625             yield chunk
   632     finally:
   626     finally:
   633         if kwt:
   627         if kwt:
   634             kwt.match = origmatch
   628             kwt.match = origmatch
   635 
   629