~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/xml_serializer.py

  • Committer: Patch Queue Manager
  • Date: 2012-02-23 19:39:07 UTC
  • mfrom: (6468.3.3 bzr)
  • Revision ID: pqm@pqm.ubuntu.com-20120223193907-11erj8xxjmrchawp
(jelmer) Use Tree.iter_children() in a couple more places. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
309
309
                                     elt_get('name'),
310
310
                                     parent_id)
311
311
        ie.symlink_target = elt_get('symlink_target')
 
312
    elif kind == 'tree-reference':
 
313
        file_id = elt.attrib['file_id']
 
314
        name = elt.attrib['name']
 
315
        parent_id = elt.attrib['parent_id']
 
316
        revision = elt.get('revision')
 
317
        reference_revision = elt.get('reference_revision')
 
318
        ie = inventory.TreeReference(file_id, name, parent_id, revision,
 
319
                                       reference_revision)
312
320
    else:
313
321
        raise errors.UnsupportedInventoryKind(kind)
314
322
    ie.revision = revision