~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/chk_serializer.py

  • Committer: John Arbash Meinel
  • Date: 2009-07-29 21:35:05 UTC
  • mfrom: (4576 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4577.
  • Revision ID: john@arbash-meinel.com-20090729213505-tkqsvy1zfpocu75w
Merge bzr.dev 4576 in prep for NEWS

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Serializer object for CHK based inventory storage."""
18
18
 
19
 
from cStringIO import (
20
 
    StringIO,
21
 
    )
22
 
 
23
19
from bzrlib import (
24
20
    bencode,
25
21
    cache_utf8,
26
22
    inventory,
27
 
    osutils,
28
23
    revision as _mod_revision,
29
24
    xml5,
30
25
    xml6,
50
45
    """Simple revision serializer based around bencode.
51
46
    """
52
47
 
 
48
    squashes_xml_invalid_characters = False
 
49
 
53
50
    # Maps {key:(Revision attribute, bencode_type, validator)}
54
51
    # This tells us what kind we expect bdecode to create, what variable on
55
52
    # Revision we should be using, and a function to call to validate/transform