comparison 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
comparison
equal deleted inserted replaced
33725:86ea201eaeb9 33726:ab0c55c2ad9a
4848 else: 4848 else:
4849 ui.write(_(' (no revision checked out)')) 4849 ui.write(_(' (no revision checked out)'))
4850 if p.obsolete(): 4850 if p.obsolete():
4851 ui.write(_(' (obsolete)')) 4851 ui.write(_(' (obsolete)'))
4852 if p.troubled(): 4852 if p.troubled():
4853 instabilities = (ui.label(instability, 'trouble.%s' % instability)
4854 for instability in p.instabilities())
4853 ui.write(' (' 4855 ui.write(' ('
4854 + ', '.join(ui.label(trouble, 'trouble.%s' % trouble) 4856 + ', '.join(instabilities)
4855 for trouble in p.troubles())
4856 + ')') 4857 + ')')
4857 ui.write('\n') 4858 ui.write('\n')
4858 if p.description(): 4859 if p.description():
4859 ui.status(' ' + p.description().splitlines()[0].strip() + '\n', 4860 ui.status(' ' + p.description().splitlines()[0].strip() + '\n',
4860 label='log.summary') 4861 label='log.summary')