~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revision.py

  • Committer: Joe Julian
  • Date: 2010-01-10 02:25:31 UTC
  • mto: (4634.119.7 2.0)
  • mto: This revision was merged to the branch mainline in revision 4959.
  • Revision ID: joe@julianfamily.org-20100110022531-wqk61rsagz8xsiga
Added MANIFEST.in to allow bdist_rpm to have all the required include files and tools. bdist_rpm will still fail to build correctly on some distributions due to a disttools bug http://bugs.python.org/issue644744

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)
88
88
                raise ValueError("invalid property name %r" % name)
89
89
            if not isinstance(value, basestring):
90
90
                raise ValueError("invalid property value %r for %r" %
91
 
                                 (name, value))
 
91
                                 (value, name))
92
92
 
93
93
    def get_history(self, repository):
94
94
        """Return the canonical line-of-history for this revision.
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):