mercurial/templatekw.py
changeset 30712 5dde81de1e6d
parent 30375 11b8b740d54a
child 30811 cf1e15f91c90
equal deleted inserted replaced
30711:c03627d87d9d 30712:5dde81de1e6d
   593 @templatekeyword('termwidth')
   593 @templatekeyword('termwidth')
   594 def termwidth(repo, ctx, templ, **args):
   594 def termwidth(repo, ctx, templ, **args):
   595     """Integer. The width of the current terminal."""
   595     """Integer. The width of the current terminal."""
   596     return repo.ui.termwidth()
   596     return repo.ui.termwidth()
   597 
   597 
       
   598 @templatekeyword('troubles')
       
   599 def showtroubles(**args):
       
   600     """List of strings. Evolution troubles affecting the changeset.
       
   601 
       
   602     (EXPERIMENTAL)
       
   603     """
       
   604     return showlist('trouble', args['ctx'].troubles(), **args)
       
   605 
   598 # tell hggettext to extract docstrings from these functions:
   606 # tell hggettext to extract docstrings from these functions:
   599 i18nfunctions = keywords.values()
   607 i18nfunctions = keywords.values()