Mercurial > hg
comparison mercurial/templatekw.py @ 35894:6289482f6ab5
templatekw: drop the deprecated '{troubles}' keyword
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 02 Feb 2018 23:53:57 -0500 |
parents | c8e2d6ed1f9e |
children | 230489fc0b41 |
comparison
equal
deleted
inserted
replaced
35893:78f33dedadd0 | 35894:6289482f6ab5 |
---|---|
891 @templatekeyword('termwidth') | 891 @templatekeyword('termwidth') |
892 def showtermwidth(repo, ctx, templ, **args): | 892 def showtermwidth(repo, ctx, templ, **args): |
893 """Integer. The width of the current terminal.""" | 893 """Integer. The width of the current terminal.""" |
894 return repo.ui.termwidth() | 894 return repo.ui.termwidth() |
895 | 895 |
896 @templatekeyword('troubles') | |
897 def showtroubles(repo, **args): | |
898 """List of strings. Evolution troubles affecting the changeset. | |
899 (DEPRECATED) | |
900 """ | |
901 msg = ("'troubles' is deprecated, " | |
902 "use 'instabilities'") | |
903 repo.ui.deprecwarn(msg, '4.4') | |
904 | |
905 return showinstabilities(repo=repo, **args) | |
906 | |
907 @templatekeyword('instabilities') | 896 @templatekeyword('instabilities') |
908 def showinstabilities(**args): | 897 def showinstabilities(**args): |
909 """List of strings. Evolution instabilities affecting the changeset. | 898 """List of strings. Evolution instabilities affecting the changeset. |
910 (EXPERIMENTAL) | 899 (EXPERIMENTAL) |
911 """ | 900 """ |