/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: Canonical.com Patch Queue Manager
  • Date: 2009-06-30 18:10:29 UTC
  • mfrom: (4493.1.1 empty-message-summary)
  • Revision ID: pqm@pqm.ubuntu.com-20090630181029-w4edlznbhz2mwc3x
(John Szakmeister) Make Revision.get_summary() return an empty string,
        instead of backtracing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
 
112
112
    def get_summary(self):
113
113
        """Get the first line of the log message for this revision.
 
114
 
 
115
        Return an empty string if message is None.
114
116
        """
115
 
        return self.message.lstrip().split('\n', 1)[0]
 
117
        if self.message:
 
118
            return self.message.lstrip().split('\n', 1)[0]
 
119
        else:
 
120
            return ''
116
121
 
117
122
    @symbol_versioning.deprecated_method(symbol_versioning.deprecated_in((1, 13, 0)))
118
123
    def get_apparent_author(self):