Mercurial > public > mercurial-scm > hg-stable
diff mercurial/templatekw.py @ 33752:ab0c55c2ad9a
context: rename troubles into instabilities
Rename troubles context method into instabilities.
Copy the old troubles method and add a deprecation warning. This way
extensions calling troubles will see the deprecation warning but will not
break due to new return values.
The renaming is done according to
https://www.mercurial-scm.org/wiki/CEDVocabulary.
Differential Revision: https://phab.mercurial-scm.org/D238
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Wed, 02 Aug 2017 18:34:39 +0200 |
parents | 511d6ae462f3 |
children | 40739aef97f7 |
line wrap: on
line diff
--- a/mercurial/templatekw.py Tue Aug 08 17:25:38 2017 -0700 +++ b/mercurial/templatekw.py Wed Aug 02 18:34:39 2017 +0200 @@ -783,7 +783,7 @@ (EXPERIMENTAL) """ args = pycompat.byteskwargs(args) - return showlist('trouble', args['ctx'].troubles(), args) + return showlist('trouble', args['ctx'].instabilities(), args) # tell hggettext to extract docstrings from these functions: i18nfunctions = keywords.values()