~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revision.py

- stub for revision properties

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        List of parent revision_ids
34
34
    """
35
35
    
36
 
    def __init__(self, revision_id, **args):
 
36
    def __init__(self, revision_id, properties=None, **args):
37
37
        self.revision_id = revision_id
 
38
        self.properties = properties or {}
38
39
        self.__dict__.update(args)
39
40
        self.parent_ids = []
40
41
        self.parent_sha1s = []
52
53
                and self.timestamp == other.timestamp
53
54
                and self.message == other.message
54
55
                and self.timezone == other.timezone
55
 
                and self.committer == other.committer)
 
56
                and self.committer == other.committer
 
57
                and self.properties == other.properties)
56
58
 
57
59
    def __ne__(self, other):
58
60
        return not self.__eq__(other)