620
620
to_file = self.to_file
621
621
to_file.write(indent + '-' * 60 + '\n')
622
622
if revision.revno is not None:
623
to_file.write(indent + 'revno: ' + revision.revno + '\n')
623
to_file.write(indent + 'revno: %s\n' % (revision.revno,))
624
624
if revision.tags:
625
625
to_file.write(indent + 'tags: %s\n' % (', '.join(revision.tags)))
626
626
if self.show_ids:
627
627
to_file.write(indent + 'revision-id:' + revision.rev.revision_id)
628
628
to_file.write('\n')
629
629
for parent_id in revision.rev.parent_ids:
630
to_file.write(indent + 'parent:' + parent_id + '\n')
630
to_file.write(indent + 'parent: %s\n' % (parent_id,))
632
632
author = revision.rev.properties.get('author', None)
633
633
if author is not None:
634
to_file.write(indent + 'author:' + author+ '\n')
635
to_file.write(indent + 'committer:' + revision.rev.committer + '\n')
634
to_file.write(indent + 'author: %s\n' % (author,))
635
to_file.write(indent + 'committer: %s\n' % (revision.rev.committer,))
637
637
branch_nick = revision.rev.properties.get('branch-nick', None)
638
638
if branch_nick is not None:
639
to_file.write(indent + 'branch nick:' + branch_nick+ '\n')
639
to_file.write(indent + 'branch nick: %s\n' % (branch_nick,))
641
641
date_str = format_date(revision.rev.timestamp,
642
642
revision.rev.timezone or 0,
643
643
self.show_timezone)
644
to_file.write(indent + 'timestamp: %s\n' % date_str)
644
to_file.write(indent + 'timestamp: %s\n' % (date_str,))
646
646
to_file.write(indent + 'message:\n')
647
647
if not revision.rev.message:
650
650
message = revision.rev.message.rstrip('\r\n')
651
651
for l in message.split('\n'):
652
to_file.write(indent + ' ' + l + '\n')
652
to_file.write(indent + ' %s\n' % (l,))
653
653
if revision.delta is not None:
654
654
revision.delta.show(to_file, self.show_ids, indent=indent)
681
681
show_offset=False),
683
683
if self.show_ids:
684
to_file.write(' revision-id:' + revision.rev.revision_id + '\n')
684
to_file.write(' revision-id:%s\n' % (revision.rev.revision_id,))
685
685
if not revision.rev.message:
686
686
to_file.write(' (no message)\n')
688
688
message = revision.rev.message.rstrip('\r\n')
689
689
for l in message.split('\n'):
690
to_file.write(' ' + l + '\n')
690
to_file.write(' %s\n' % (l,))
692
692
# TODO: Why not show the modified files in a shorter form as
693
693
# well? rewrap them single lines of appropriate length