hgext/evolve.py
changeset 982 1c7b73739a0d
parent 976 bed842762447
child 983 914255564352
--- a/hgext/evolve.py	Fri Jun 06 17:21:59 2014 -0400
+++ b/hgext/evolve.py	Thu Jun 12 16:10:01 2014 -0700
@@ -608,6 +608,13 @@
         return 'unstable'
     return 'stable'
 
+@eh.templatekw('troubles')
+def showtroubles(repo, ctx, **args):
+    """:troubles: List of strings. Evolution troubles affecting the changeset
+    (zero or more of "unstable", "divergent" or "bumped")."""
+    return templatekw.showlist('trouble', ctx.troubles(), plural='troubles',
+                               **args)
+
 #####################################################################
 ### Various trouble warning                                       ###
 #####################################################################