Mercurial > evolve
comparison hgext/evolve.py @ 982:1c7b73739a0d
template: add a troubles keyword
This keyword list all evolution troubles that affect a changeset. Evolution
troubles can be "unstable", "divergent" and "bumped".
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Thu, 12 Jun 2014 16:10:01 -0700 |
parents | bed842762447 |
children | 914255564352 |
comparison
equal
deleted
inserted
replaced
981:34e4e51affd1 | 982:1c7b73739a0d |
---|---|
605 else: | 605 else: |
606 return 'suspended' | 606 return 'suspended' |
607 elif ctx.unstable(): | 607 elif ctx.unstable(): |
608 return 'unstable' | 608 return 'unstable' |
609 return 'stable' | 609 return 'stable' |
610 | |
611 @eh.templatekw('troubles') | |
612 def showtroubles(repo, ctx, **args): | |
613 """:troubles: List of strings. Evolution troubles affecting the changeset | |
614 (zero or more of "unstable", "divergent" or "bumped").""" | |
615 return templatekw.showlist('trouble', ctx.troubles(), plural='troubles', | |
616 **args) | |
610 | 617 |
611 ##################################################################### | 618 ##################################################################### |
612 ### Various trouble warning ### | 619 ### Various trouble warning ### |
613 ##################################################################### | 620 ##################################################################### |
614 | 621 |