~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/annotate.py

  • Committer: Lukáš Lalinsky
  • Date: 2007-08-15 14:11:32 UTC
  • mto: (2755.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 2757.
  • Revision ID: lalinsky@gmail.com-20070815141132-pz74tddh5clr867k
Use the author name in annotate.

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
def _annotate_file(branch, rev_id, file_id):
100
100
    """Yield the origins for each line of a file.
101
101
 
102
 
    This includes detailed information, such as the committer name, and
 
102
    This includes detailed information, such as the author name, and
103
103
    date string for the commit, rather than just the revision id.
104
104
    """
105
105
    revision_id_to_revno = branch.get_revision_id_to_revno_map()
129
129
                                     time.gmtime(rev.timestamp + tz))
130
130
            # a lazy way to get something like the email address
131
131
            # TODO: Get real email address
132
 
            author = rev.committer
 
132
            author = rev.get_author()
133
133
            try:
134
134
                author = extract_email_address(author)
135
135
            except errors.NoEmailInUsername: