~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_chk_map.py

  • Committer: John Arbash Meinel
  • Date: 2009-10-21 18:50:08 UTC
  • mto: This revision was merged to the branch mainline in revision 4771.
  • Revision ID: john@arbash-meinel.com-20091021185008-8t37d9j69t0yo2vg
Create a Barrier at the CHKMap interface.

Basically, everything above CHKMap can work in either tuples or StaticTuples.
Everything *below* CHKMap should be working in StaticTuples.
I need to fix .iteritems() but apply_delta, map, unmap, from_dict, etc are
all handled.

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
                 search_key_func=None):
75
75
        if chk_bytes is None:
76
76
            chk_bytes = self.get_chk_bytes()
77
 
        a_dict = dict((StaticTuple(*k), v) for k, v in a_dict.iteritems())
78
77
        root_key = CHKMap.from_dict(chk_bytes, a_dict,
79
78
            maximum_size=maximum_size, key_width=key_width,
80
79
            search_key_func=search_key_func)