equal
deleted
inserted
replaced
3076 parents = ctx.parents() |
3076 parents = ctx.parents() |
3077 pnode = parents[0].node() |
3077 pnode = parents[0].node() |
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', |
3097 label='log.summary') |
3094 label='log.summary') |
3098 |
3095 |