Mercurial > public > mercurial-scm > evolve
diff 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 |
line wrap: on
line diff
--- 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 ### #####################################################################