##// END OF EJS Templates
commands: small refactoring in summary
Martin Geisler -
r10834:4ab459a6 default
parent child Browse files
Show More
@@ -3078,19 +3078,16 b' def summary(ui, repo, **opts):'
3078 tags = repo.tags()
3078 tags = repo.tags()
3079
3079
3080 for p in parents:
3080 for p in parents:
3081 message = ''
3082 if p.rev() == -1:
3083 if not len(repo):
3084 message = _(' (empty repository)')
3085 else:
3086 message = _(' (no revision checked out)')
3087 # label with log.changeset (instead of log.parent) since this
3081 # label with log.changeset (instead of log.parent) since this
3088 # shows a working directory parent *changeset*:
3082 # shows a working directory parent *changeset*:
3089 ui.write(_('parent: %d:%s ') % (p.rev(), str(p)),
3083 ui.write(_('parent: %d:%s ') % (p.rev(), str(p)),
3090 label='log.changeset')
3084 label='log.changeset')
3091 ui.write(' '.join(p.tags()), label='log.tag')
3085 ui.write(' '.join(p.tags()), label='log.tag')
3092 if message:
3086 if p.rev() == -1:
3093 ui.write(message)
3087 if not len(repo):
3088 ui.write(_(' (empty repository)'))
3089 else:
3090 ui.write(_(' (no revision checked out)'))
3094 ui.write('\n')
3091 ui.write('\n')
3095 if p.description():
3092 if p.description():
3096 ui.status(' ' + p.description().splitlines()[0].strip() + '\n',
3093 ui.status(' ' + p.description().splitlines()[0].strip() + '\n',
General Comments 0
You need to be logged in to leave comments. Login now