/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/chk_map.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:
42
42
import heapq
43
43
import threading
44
44
 
45
 
from brzlib import lazy_import
 
45
from breezy import lazy_import
46
46
lazy_import.lazy_import(globals(), """
47
 
from brzlib import (
 
47
from breezy import (
48
48
    errors,
49
49
    )
50
50
""")
51
 
from brzlib import (
 
51
from breezy import (
52
52
    errors,
53
53
    lru_cache,
54
54
    osutils,
56
56
    static_tuple,
57
57
    trace,
58
58
    )
59
 
from brzlib.static_tuple import StaticTuple
 
59
from breezy.static_tuple import StaticTuple
60
60
 
61
61
# approx 4MB
62
62
# If each line is 50 bytes, and you have 255 internal pages, with 255-way fan
389
389
            # A better implementation would probably have a reverse map
390
390
            # back to the children of a node, and jump straight to it when
391
391
            # a common node is detected, the proceed to remove the already
392
 
            # pending children. brzlib.graph has a searcher module with a
 
392
            # pending children. breezy.graph has a searcher module with a
393
393
            # similar problem.
394
394
            while key_path is not None:
395
395
                key, key_path = key_path
1725
1725
 
1726
1726
 
1727
1727
try:
1728
 
    from brzlib._chk_map_pyx import (
 
1728
    from breezy._chk_map_pyx import (
1729
1729
        _bytes_to_text_key,
1730
1730
        _search_key_16,
1731
1731
        _search_key_255,
1734
1734
        )
1735
1735
except ImportError, e:
1736
1736
    osutils.failed_to_load_extension(e)
1737
 
    from brzlib._chk_map_py import (
 
1737
    from breezy._chk_map_py import (
1738
1738
        _bytes_to_text_key,
1739
1739
        _search_key_16,
1740
1740
        _search_key_255,