hgext/evolve.py
branchstable
changeset 1400 ff43167ed0ba
parent 973 6d691fefdbd1
parent 1399 9ff6d9240f16
child 1401 20ff4ef75b87
equal deleted inserted replaced
973:6d691fefdbd1 1400:ff43167ed0ba
   591         else:
   591         else:
   592             return 'suspended'
   592             return 'suspended'
   593     elif ctx.unstable():
   593     elif ctx.unstable():
   594         return 'unstable'
   594         return 'unstable'
   595     return 'stable'
   595     return 'stable'
       
   596 
       
   597 @eh.templatekw('troubles')
       
   598 def showtroubles(repo, ctx, **args):
       
   599     """:troubles: List of strings. Evolution troubles affecting the changeset
       
   600     (zero or more of "unstable", "divergent" or "bumped")."""
       
   601     return templatekw.showlist('trouble', ctx.troubles(), plural='troubles',
       
   602                                **args)
   596 
   603 
   597 #####################################################################
   604 #####################################################################
   598 ### Various trouble warning                                       ###
   605 ### Various trouble warning                                       ###
   599 #####################################################################
   606 #####################################################################
   600 
   607