~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revision.py

  • Committer: Andrew Bennetts
  • Date: 2009-06-19 03:47:11 UTC
  • mto: This revision was merged to the branch mainline in revision 4463.
  • Revision ID: andrew.bennetts@canonical.com-20090619034711-79zieyngsoggdtoc
Compare .parent_ids in Revision.__eq__.

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)