/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/knit.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:
59
59
import operator
60
60
import os
61
61
 
62
 
from brzlib.lazy_import import lazy_import
 
62
from breezy.lazy_import import lazy_import
63
63
lazy_import(globals(), """
64
64
import gzip
65
65
 
66
 
from brzlib import (
 
66
from breezy import (
67
67
    debug,
68
68
    diff,
69
69
    graph as _mod_graph,
77
77
    ui,
78
78
    )
79
79
 
80
 
from brzlib.repofmt import pack_repo
81
 
from brzlib.i18n import gettext
 
80
from breezy.repofmt import pack_repo
 
81
from breezy.i18n import gettext
82
82
""")
83
 
from brzlib import (
 
83
from breezy import (
84
84
    annotate,
85
85
    errors,
86
86
    osutils,
87
87
    )
88
 
from brzlib.errors import (
 
88
from breezy.errors import (
89
89
    NoSuchFile,
90
90
    InvalidRevisionId,
91
91
    KnitCorrupt,
93
93
    RevisionNotPresent,
94
94
    SHA1KnitCorrupt,
95
95
    )
96
 
from brzlib.osutils import (
 
96
from breezy.osutils import (
97
97
    contains_whitespace,
98
98
    sha_string,
99
99
    sha_strings,
100
100
    split_lines,
101
101
    )
102
 
from brzlib.versionedfile import (
 
102
from breezy.versionedfile import (
103
103
    _KeyRefs,
104
104
    AbsentContentFactory,
105
105
    adapter_registry,
872
872
            stored during insertion.
873
873
        :param reload_func: An function that can be called if we think we need
874
874
            to reload the pack listing and try again. See
875
 
            'brzlib.repofmt.pack_repo.AggregateIndex' for the signature.
 
875
            'breezy.repofmt.pack_repo.AggregateIndex' for the signature.
876
876
        """
877
877
        self._index = index
878
878
        self._access = data_access
2785
2785
        add_callback=None, track_external_parent_refs=False):
2786
2786
        """Construct a KnitGraphIndex on a graph_index.
2787
2787
 
2788
 
        :param graph_index: An implementation of brzlib.index.GraphIndex.
 
2788
        :param graph_index: An implementation of breezy.index.GraphIndex.
2789
2789
        :param is_locked: A callback to check whether the object should answer
2790
2790
            queries.
2791
2791
        :param deltas: Allow delta-compressed records.
3499
3499
                    to_process.extend(self._process_pending(key))
3500
3500
 
3501
3501
try:
3502
 
    from brzlib._knit_load_data_pyx import _load_data_c as _load_data
 
3502
    from breezy._knit_load_data_pyx import _load_data_c as _load_data
3503
3503
except ImportError, e:
3504
3504
    osutils.failed_to_load_extension(e)
3505
 
    from brzlib._knit_load_data_py import _load_data_py as _load_data
 
3505
    from breezy._knit_load_data_py import _load_data_py as _load_data