~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/xml5.py

  • Committer: Martin Pool
  • Date: 2005-09-19 08:02:41 UTC
  • Revision ID: mbp@sourcefrog.net-20050919080241-d9460223db8f7d90
- rename to Revision.parent_ids to avoid confusion with old usage
  where Revision.parents held objects rather than strings\t

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
        msg.text = rev.message
87
87
        msg.tail = '\n'
88
88
 
89
 
        if rev.parents:
 
89
        if rev.parent_ids:
90
90
            pelts = SubElement(root, 'parents')
91
91
            pelts.tail = pelts.text = '\n'
92
 
            for parent_id in rev.parents:
 
92
            for parent_id in rev.parent_ids:
93
93
                assert isinstance(parent_id, basestring)
94
94
                p = SubElement(pelts, 'revision_ref')
95
95
                p.tail = '\n'
147
147
        for p in parents:
148
148
            assert p.tag == 'revision_ref', \
149
149
                   "bad parent node tag %r" % p.tag
150
 
            rev.parents.append(p.get('revision_id'))
 
150
            rev.parent_ids.append(p.get('revision_id'))
151
151
 
152
152
        v = elt.get('timezone')
153
153
        rev.timezone = v and int(v)