~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/btree_index.py

  • Committer: Vincent Ladeuil
  • Date: 2009-05-05 15:31:34 UTC
  • mto: (4343.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4344.
  • Revision ID: v.ladeuil+lp@free.fr-20090505153134-q4bp4is9gywsmzrv
Clean up test for log formats.

* bzrlib/tests/blackbox/test_logformats.py:
Update tests to actual style.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
"""B+Tree indices"""
19
19
 
 
20
import array
 
21
import bisect
20
22
from bisect import bisect_right
 
23
from copy import deepcopy
21
24
import math
 
25
import struct
22
26
import tempfile
23
27
import zlib
24
28
 
427
431
    def iter_all_entries(self):
428
432
        """Iterate over all keys within the index
429
433
 
430
 
        :return: An iterable of (index, key, value, reference_lists). There is
431
 
            no defined order for the result iteration - it will be in the most
 
434
        :return: An iterable of (index, key, reference_lists, value). There is no
 
435
            defined order for the result iteration - it will be in the most
432
436
            efficient order for the index (in this case dictionary hash order).
433
437
        """
434
438
        if 'evil' in debug.debug_flags:
1384
1388
 
1385
1389
 
1386
1390
try:
1387
 
    from bzrlib import _btree_serializer_pyx as _btree_serializer
 
1391
    from bzrlib import _btree_serializer_c as _btree_serializer
1388
1392
except ImportError:
1389
1393
    from bzrlib import _btree_serializer_py as _btree_serializer