/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/btree_index.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 18:10:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521181028-zn04pdfw0od9hfj3
Rename brzlib => breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
import cStringIO
23
23
 
24
 
from brzlib.lazy_import import lazy_import
 
24
from breezy.lazy_import import lazy_import
25
25
lazy_import(globals(), """
26
26
import bisect
27
27
import math
29
29
import zlib
30
30
""")
31
31
 
32
 
from brzlib import (
 
32
from breezy import (
33
33
    chunk_writer,
34
34
    debug,
35
35
    errors,
41
41
    trace,
42
42
    transport,
43
43
    )
44
 
from brzlib.index import _OPTION_NODE_REFS, _OPTION_KEY_ELEMENTS, _OPTION_LEN
 
44
from breezy.index import _OPTION_NODE_REFS, _OPTION_KEY_ELEMENTS, _OPTION_LEN
45
45
 
46
46
 
47
47
_BTSIGNATURE = "B+Tree Graph Index 2\n"
1360
1360
            self._get_root_node()
1361
1361
        # TODO: only access nodes that can satisfy the prefixes we are looking
1362
1362
        # for. For now, to meet API usage (as this function is not used by
1363
 
        # current brzlib) just suck the entire index and iterate in memory.
 
1363
        # current breezy) just suck the entire index and iterate in memory.
1364
1364
        nodes = {}
1365
1365
        if self.node_ref_lists:
1366
1366
            if self._key_length == 1:
1601
1601
_gcchk_factory = _LeafNode
1602
1602
 
1603
1603
try:
1604
 
    from brzlib import _btree_serializer_pyx as _btree_serializer
 
1604
    from breezy import _btree_serializer_pyx as _btree_serializer
1605
1605
    _gcchk_factory = _btree_serializer._parse_into_chk
1606
1606
except ImportError, e:
1607
1607
    osutils.failed_to_load_extension(e)
1608
 
    from brzlib import _btree_serializer_py as _btree_serializer
 
1608
    from breezy import _btree_serializer_py as _btree_serializer