~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/log.py

  • Committer: James Westby
  • Date: 2009-02-27 15:14:34 UTC
  • mto: This revision was merged to the branch mainline in revision 4077.
  • Revision ID: jw+debian@jameswestby.net-20090227151434-kk7lqj62fnqmj2ng
Use a new "authors" revision property to allow multiple authors

The "authors" revision property holds a "\n" separated list of
authors.

"author" is still read, but will be overriden by "authors" if
present.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1216
1216
                to_file.write(indent + 'parent: %s\n' % (parent_id,))
1217
1217
        self.show_properties(revision.rev, indent)
1218
1218
 
1219
 
        author = revision.rev.properties.get('author', None)
1220
 
        if author is not None:
1221
 
            to_file.write(indent + 'author: %s\n' % (" ".join(author.split("\n")),))
1222
 
        to_file.write(indent + 'committer: %s\n' % (revision.rev.committer,))
 
1219
        committer = revision.rev.committer
 
1220
        authors = revision.rev.get_apparent_authors()
 
1221
        if authors != [committer]:
 
1222
            to_file.write(indent + 'author: %s\n' % (", ".join(authors),))
 
1223
        to_file.write(indent + 'committer: %s\n' % (committer,))
1223
1224
 
1224
1225
        branch_nick = revision.rev.properties.get('branch-nick', None)
1225
1226
        if branch_nick is not None: