~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/xml4.py

  • Committer: John Arbash Meinel
  • Date: 2009-07-08 14:37:25 UTC
  • mfrom: (4516 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4517.
  • Revision ID: john@arbash-meinel.com-20090708143725-sc9sjy3mz4cxwxzz
Merge bzr.dev 4516

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
    ElementTree,
20
20
    SubElement,
21
21
    XMLSerializer,
 
22
    escape_invalid_chars,
22
23
    )
23
24
from bzrlib.inventory import ROOT_ID, Inventory, InventoryEntry
24
25
import bzrlib.inventory as inventory
125
126
        root.text = '\n'
126
127
 
127
128
        msg = SubElement(root, 'message')
128
 
        msg.text = rev.message
 
129
        msg.text = escape_invalid_chars(rev.message)[0]
129
130
        msg.tail = '\n'
130
131
 
131
132
        if rev.parents: