equal
deleted
inserted
replaced
663 ### template keywords |
663 ### template keywords |
664 # XXX it does not handle troubles well :-/ |
664 # XXX it does not handle troubles well :-/ |
665 |
665 |
666 @eh.templatekw('obsolete') |
666 @eh.templatekw('obsolete') |
667 def obsoletekw(repo, ctx, templ, **args): |
667 def obsoletekw(repo, ctx, templ, **args): |
668 """:obsolete: String. The obsolescence level of the node, could be |
668 """:obsolete: String. Whether the changeset is ``obsolete``. |
669 ``stable``, ``unstable``, ``suspended`` or ``extinct``. |
|
670 """ |
669 """ |
671 if ctx.obsolete(): |
670 if ctx.obsolete(): |
672 if ctx.extinct(): |
671 return 'obsolete' |
673 return 'extinct' |
672 return '' |
674 else: |
|
675 return 'suspended' |
|
676 elif ctx.unstable(): |
|
677 return 'unstable' |
|
678 return 'stable' |
|
679 |
673 |
680 @eh.templatekw('troubles') |
674 @eh.templatekw('troubles') |
681 def showtroubles(repo, ctx, **args): |
675 def showtroubles(repo, ctx, **args): |
682 """:troubles: List of strings. Evolution troubles affecting the changeset |
676 """:troubles: List of strings. Evolution troubles affecting the changeset |
683 (zero or more of "unstable", "divergent" or "bumped").""" |
677 (zero or more of "unstable", "divergent" or "bumped").""" |