Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 30715:7b526670f540
summary: add evolution "troubles" information to summary output
Extend the "parent: " lines in summary with the list of evolution "troubles"
in parentheses, when the parent is troubled.
author | Denis Laxalde <denis.laxalde@logilab.fr> |
---|---|
date | Fri, 06 Jan 2017 14:35:22 +0100 |
parents | 8d46eaaa589c |
children | 4ab19763d71c |
comparison
equal
deleted
inserted
replaced
30714:8d46eaaa589c | 30715:7b526670f540 |
---|---|
5989 if p.rev() == -1: | 5989 if p.rev() == -1: |
5990 if not len(repo): | 5990 if not len(repo): |
5991 ui.write(_(' (empty repository)')) | 5991 ui.write(_(' (empty repository)')) |
5992 else: | 5992 else: |
5993 ui.write(_(' (no revision checked out)')) | 5993 ui.write(_(' (no revision checked out)')) |
5994 if p.troubled(): | |
5995 ui.write(' (') | |
5996 troubles = p.troubles() | |
5997 for idx, trouble in enumerate(troubles, 1): | |
5998 ui.write(trouble, | |
5999 label='trouble.%s' % trouble) | |
6000 if idx < len(troubles): | |
6001 ui.write(', ') | |
6002 ui.write(')') | |
5994 ui.write('\n') | 6003 ui.write('\n') |
5995 if p.description(): | 6004 if p.description(): |
5996 ui.status(' ' + p.description().splitlines()[0].strip() + '\n', | 6005 ui.status(' ' + p.description().splitlines()[0].strip() + '\n', |
5997 label='log.summary') | 6006 label='log.summary') |
5998 | 6007 |