~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revision.py

  • Committer: Lukáš Lalinsky
  • Date: 2007-08-16 18:50:22 UTC
  • mto: (2755.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 2757.
  • Revision ID: lalinsky@gmail.com-20070816185022-nra7t01mk81d47rm
Rename get_author to get_apparent_author, revert the long log back to displaying the committer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
        """
117
117
        return self.message.lstrip().split('\n', 1)[0]
118
118
 
119
 
    def get_author(self):
120
 
        """Get the author of this revision.
 
119
    def get_apparent_author(self):
 
120
        """Return the apparent author of this revision.
 
121
 
 
122
        If the revision properties contain the author name,
 
123
        return it. Otherwise return the committer name.
121
124
        """
122
125
        return self.properties.get('author', self.committer)
123
126