mercurial/templatekw.py
changeset 30712 5dde81de1e6d
parent 30375 11b8b740d54a
child 30811 cf1e15f91c90
--- a/mercurial/templatekw.py	Fri Jan 06 15:48:22 2017 +0100
+++ b/mercurial/templatekw.py	Fri Jan 06 13:50:16 2017 +0100
@@ -595,5 +595,13 @@
     """Integer. The width of the current terminal."""
     return repo.ui.termwidth()
 
+@templatekeyword('troubles')
+def showtroubles(**args):
+    """List of strings. Evolution troubles affecting the changeset.
+
+    (EXPERIMENTAL)
+    """
+    return showlist('trouble', args['ctx'].troubles(), **args)
+
 # tell hggettext to extract docstrings from these functions:
 i18nfunctions = keywords.values()