~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revision.py

  • Committer: John Arbash Meinel
  • Date: 2009-07-29 21:35:05 UTC
  • mfrom: (4576 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4577.
  • Revision ID: john@arbash-meinel.com-20090729213505-tkqsvy1zfpocu75w
Merge bzr.dev 4576 in prep for NEWS

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
    def __eq__(self, other):
69
69
        if not isinstance(other, Revision):
70
70
            return False
71
 
        # FIXME: rbc 20050930 parent_ids are not being compared
72
71
        return (
73
72
                self.inventory_sha1 == other.inventory_sha1
74
73
                and self.revision_id == other.revision_id
76
75
                and self.message == other.message
77
76
                and self.timezone == other.timezone
78
77
                and self.committer == other.committer
79
 
                and self.properties == other.properties)
 
78
                and self.properties == other.properties
 
79
                and self.parent_ids == other.parent_ids)
80
80
 
81
81
    def __ne__(self, other):
82
82
        return not self.__eq__(other)
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):