comparison mercurial/commands.py @ 31708:cda83a1bfb3a

summary: display obsolete state of parents Extend the "parent: " lines in summary to display "(obsolete)" when the parent is obsolete.
author Denis Laxalde <denis@laxalde.org>
date Sat, 25 Mar 2017 11:30:08 +0100
parents fbc4eb8e2433
children 54b1af732415
comparison
equal deleted inserted replaced
31707:00f996f05522 31708:cda83a1bfb3a
4832 if p.rev() == -1: 4832 if p.rev() == -1:
4833 if not len(repo): 4833 if not len(repo):
4834 ui.write(_(' (empty repository)')) 4834 ui.write(_(' (empty repository)'))
4835 else: 4835 else:
4836 ui.write(_(' (no revision checked out)')) 4836 ui.write(_(' (no revision checked out)'))
4837 if p.obsolete():
4838 ui.write(_(' (obsolete)'))
4837 if p.troubled(): 4839 if p.troubled():
4838 ui.write(' (' 4840 ui.write(' ('
4839 + ', '.join(ui.label(trouble, 'trouble.%s' % trouble) 4841 + ', '.join(ui.label(trouble, 'trouble.%s' % trouble)
4840 for trouble in p.troubles()) 4842 for trouble in p.troubles())
4841 + ')') 4843 + ')')