~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revision.py

  • Committer: Robert Collins
  • Date: 2005-09-07 16:31:54 UTC
  • mto: (1092.3.1)
  • mto: This revision was merged to the branch mainline in revision 1397.
  • Revision ID: robertc@robertcollins.net-20050907163154-9a974d4a0de52321
so should RevisionReferences

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
    Includes the revision_id and revision_sha1.
26
26
    """
 
27
 
 
28
    def __eq__(self, other):
 
29
        try:
 
30
            return self.revision_id == other.revision_id and \
 
31
                   self.revision_sha1 == other.revision_sha1
 
32
        except AttributeError:
 
33
            return False
 
34
 
27
35
    def __init__(self, revision_id, revision_sha1=None):
28
36
        self.revision_id = None
29
37
        self.revision_sha1 = None