~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/xml8.py

  • Committer: Jelmer Vernooij
  • Date: 2009-04-02 15:28:11 UTC
  • mto: This revision was merged to the branch mainline in revision 4253.
  • Revision ID: jelmer@samba.org-20090402152811-0uxng6q5kseoug7q
Add new module with generic serializer information; keep XML-specific bits in 
xml_serializer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    revision as _mod_revision,
25
25
    trace,
26
26
    )
27
 
from bzrlib.xml_serializer import SubElement, Element, Serializer
 
27
from bzrlib.xml_serializer import (
 
28
    Element,
 
29
    SubElement,
 
30
    XMLSerializer,
 
31
    )
28
32
from bzrlib.inventory import ROOT_ID, Inventory, InventoryEntry
29
33
from bzrlib.revision import Revision
30
34
from bzrlib.errors import BzrError
139
143
    _to_escaped_map.clear()
140
144
 
141
145
 
142
 
class Serializer_v8(Serializer):
 
146
class Serializer_v8(XMLSerializer):
143
147
    """This serialiser adds rich roots.
144
148
 
145
149
    Its revision format number matches its inventory number.