~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/xml4.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-10-06 20:45:48 UTC
  • mfrom: (4728.1.2 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20091006204548-bjnc3z4k256ppimz
MutableTree.has_changes() does not require a tree parameter anymore

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: