Mercurial > hg
diff mercurial/commands.py @ 33726: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 | db3dc11356ed |
children | 52c5ff856b49 |
line wrap: on
line diff
--- a/mercurial/commands.py Tue Aug 08 17:25:38 2017 -0700 +++ b/mercurial/commands.py Wed Aug 02 18:34:39 2017 +0200 @@ -4850,9 +4850,10 @@ if p.obsolete(): ui.write(_(' (obsolete)')) if p.troubled(): + instabilities = (ui.label(instability, 'trouble.%s' % instability) + for instability in p.instabilities()) ui.write(' (' - + ', '.join(ui.label(trouble, 'trouble.%s' % trouble) - for trouble in p.troubles()) + + ', '.join(instabilities) + ')') ui.write('\n') if p.description():