Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 33756:52c5ff856b49
context: rename troubled into isunstable
As we changed the meaning of unstable between the old vocabulary and the new
one, we can't reuse the unstable method name at the risk of breaking
extensions calling unstable and getting a wrong result.
Instead rename troubled into isunstable so extensions will continue to work.
The renaming is done according to
https://www.mercurial-scm.org/wiki/CEDVocabulary.
Differential Revision: https://phab.mercurial-scm.org/D242
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Wed, 02 Aug 2017 19:13:56 +0200 |
parents | ab0c55c2ad9a |
children | 96f43981c1c4 |
comparison
equal
deleted
inserted
replaced
33755:8413cbeae275 | 33756:52c5ff856b49 |
---|---|
4847 ui.write(_(' (empty repository)')) | 4847 ui.write(_(' (empty repository)')) |
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.isunstable(): |
4853 instabilities = (ui.label(instability, 'trouble.%s' % instability) | 4853 instabilities = (ui.label(instability, 'trouble.%s' % instability) |
4854 for instability in p.instabilities()) | 4854 for instability in p.instabilities()) |
4855 ui.write(' (' | 4855 ui.write(' (' |
4856 + ', '.join(instabilities) | 4856 + ', '.join(instabilities) |
4857 + ')') | 4857 + ')') |