/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/xml5.py

  • Committer: Martin Pool
  • Date: 2007-08-20 05:53:39 UTC
  • mfrom: (2727 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2730.
  • Revision ID: mbp@sourcefrog.net-20070820055339-uzei7f7i7jo6tugg
merge trunk

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
150
151
    # of the versionedfile, without doing XML parsing.
151
152
 
152
153
    supported_kinds = set(['file', 'directory', 'symlink'])
 
154
    format_num = '5'
153
155
 
154
156
    def write_inventory_to_string(self, inv):
155
157
        """Just call write_inventory with a StringIO and return the value"""
256
258
            pelts.tail = pelts.text = '\n'
257
259
            for parent_id in rev.parent_ids:
258
260
                assert isinstance(parent_id, basestring)
 
261
                _mod_revision.check_not_reserved_id(parent_id)
259
262
                p = SubElement(pelts, 'revision_ref')
260
263
                p.tail = '\n'
261
264
                if isinstance(parent_id, str):