/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/revision.py

  • Committer: Ian Clatworthy
  • Date: 2007-08-28 06:43:19 UTC
  • mfrom: (2671.5.8 author-2)
  • mto: This revision was merged to the branch mainline in revision 2757.
  • Revision ID: ian.clatworthy@internode.on.net-20070828064319-g8nl209v23jx0i62
(Lukáš Lalinský) Display the author instead of the committer in bzr log and bzr annotate

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
    def get_summary(self):
115
115
        """Get the first line of the log message for this revision.
116
116
        """
117
 
        return self.message.split('\n', 1)[0]
 
117
        return self.message.lstrip().split('\n', 1)[0]
 
118
 
 
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.
 
124
        """
 
125
        return self.properties.get('author', self.committer)
118
126
 
119
127
 
120
128
def is_ancestor(revision_id, candidate_id, branch):