~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/xml5.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-06-21 05:22:37 UTC
  • mfrom: (2490.2.33 graphwalker)
  • Revision ID: pqm@pqm.ubuntu.com-20070621052237-2phm1z5dg4arrwnk
Avoid topological sorting in Repository.get_ancestry where possible

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,
25
24
    )
26
25
from bzrlib.xml_serializer import SubElement, Element, Serializer
27
26
from bzrlib.inventory import ROOT_ID, Inventory, InventoryEntry
257
256
            pelts.tail = pelts.text = '\n'
258
257
            for parent_id in rev.parent_ids:
259
258
                assert isinstance(parent_id, basestring)
260
 
                _mod_revision.check_not_reserved_id(parent_id)
261
259
                p = SubElement(pelts, 'revision_ref')
262
260
                p.tail = '\n'
263
261
                if isinstance(parent_id, str):