~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/xml4.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:
162
162
            for p in pelts:
163
163
                assert p.tag == 'revision_ref', \
164
164
                       "bad parent node tag %r" % p.tag
165
 
                rev.parents.append(p.get('revision_id'))
 
165
                rev.parent_ids.append(p.get('revision_id'))
166
166
                rev.parent_sha1s.append(p.get('revision_sha1'))
167
167
            if precursor:
168
168
                # must be consistent
169
 
                prec_parent = rev.parents[0].revision_id
 
169
                prec_parent = rev.parent_ids[0].revision_id
170
170
                assert prec_parent == precursor
171
171
        elif precursor:
172
172
            # revisions written prior to 0.0.5 have a single precursor
173
173
            # give as an attribute
174
 
            rev.parents.append(precursor)
 
174
            rev.parent_ids.append(precursor)
175
175
            rev.parent_sha1s.append(precursor_sha1)
176
176
 
177
177
        v = elt.get('timezone')