~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/xml4.py

  • Committer: Vincent Ladeuil
  • Date: 2009-06-22 12:52:39 UTC
  • mto: (4471.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4472.
  • Revision ID: v.ladeuil+lp@free.fr-20090622125239-kabo9smxt9c3vnir
Use a consistent scheme for naming pyrex source files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
 
from bzrlib.xml_serializer import ElementTree, SubElement, Element, Serializer
 
17
from bzrlib.xml_serializer import (
 
18
    Element,
 
19
    ElementTree,
 
20
    SubElement,
 
21
    XMLSerializer,
 
22
    escape_invalid_chars,
 
23
    )
18
24
from bzrlib.inventory import ROOT_ID, Inventory, InventoryEntry
19
25
import bzrlib.inventory as inventory
20
26
from bzrlib.revision import Revision
21
27
from bzrlib.errors import BzrError
22
28
 
23
29
 
24
 
class _Serializer_v4(Serializer):
 
30
class _Serializer_v4(XMLSerializer):
25
31
    """Version 0.0.4 serializer
26
32
 
27
33
    You should use the serializer_v4 singleton.
120
126
        root.text = '\n'
121
127
 
122
128
        msg = SubElement(root, 'message')
123
 
        msg.text = rev.message
 
129
        msg.text = escape_invalid_chars(rev.message)[0]
124
130
        msg.tail = '\n'
125
131
 
126
132
        if rev.parents: