~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/xml5.py

  • Committer: Vincent Ladeuil
  • Date: 2007-07-15 11:24:18 UTC
  • mfrom: (2617 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2646.
  • Revision ID: v.ladeuil+lp@free.fr-20070715112418-9nn4n6esxv60ny4b
merge bzr.dev@1617

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
    cache_utf8,
22
22
    errors,
23
23
    inventory,
 
24
    revision as _mod_revision,
24
25
    )
25
26
from bzrlib.xml_serializer import SubElement, Element, Serializer
26
27
from bzrlib.inventory import ROOT_ID, Inventory, InventoryEntry
256
257
            pelts.tail = pelts.text = '\n'
257
258
            for parent_id in rev.parent_ids:
258
259
                assert isinstance(parent_id, basestring)
 
260
                _mod_revision.check_not_reserved_id(parent_id)
259
261
                p = SubElement(pelts, 'revision_ref')
260
262
                p.tail = '\n'
261
263
                if isinstance(parent_id, str):