/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/controldir.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:
18
18
 
19
19
The ControlDir class is the base for the control directory used
20
20
by all bzr and foreign formats. For the ".bzr" implementation,
21
 
see brzlib.bzrdir.BzrDir.
 
21
see breezy.bzrdir.BzrDir.
22
22
 
23
23
"""
24
24
 
25
25
from __future__ import absolute_import
26
26
 
27
 
from brzlib.lazy_import import lazy_import
 
27
from breezy.lazy_import import lazy_import
28
28
lazy_import(globals(), """
29
29
import textwrap
30
30
 
31
 
from brzlib import (
 
31
from breezy import (
32
32
    errors,
33
33
    hooks,
34
34
    revision as _mod_revision,
37
37
    ui,
38
38
    urlutils,
39
39
    )
40
 
from brzlib.transport import local
41
 
from brzlib.push import (
 
40
from breezy.transport import local
 
41
from breezy.push import (
42
42
    PushResult,
43
43
    )
44
44
 
45
 
from brzlib.i18n import gettext
 
45
from breezy.i18n import gettext
46
46
""")
47
47
 
48
 
from brzlib import registry
 
48
from breezy import registry
49
49
 
50
50
 
51
51
class ControlComponent(object):
845
845
 
846
846
    def __init__(self):
847
847
        """Create the default hooks."""
848
 
        hooks.Hooks.__init__(self, "brzlib.controldir", "ControlDir.hooks")
 
848
        hooks.Hooks.__init__(self, "breezy.controldir", "ControlDir.hooks")
849
849
        self.add_hook('pre_open',
850
850
            "Invoked before attempting to open a ControlDir with the transport "
851
851
            "that the open will use.", (1, 14))
852
852
        self.add_hook('post_repo_init',
853
853
            "Invoked after a repository has been initialized. "
854
854
            "post_repo_init is called with a "
855
 
            "brzlib.controldir.RepoInitHookParams.",
 
855
            "breezy.controldir.RepoInitHookParams.",
856
856
            (2, 2))
857
857
 
858
858
# install the default hooks
1042
1042
    def get_converter(self, format=None):
1043
1043
        """Return the converter to use to convert controldirs needing converts.
1044
1044
 
1045
 
        This returns a brzlib.controldir.Converter object.
 
1045
        This returns a breezy.controldir.Converter object.
1046
1046
 
1047
1047
        This should return the best upgrader to step this format towards the
1048
1048
        current default format. In the case of plugins we can/should provide
1244
1244
    transport, but it may be extended in the future to e.g. avoid
1245
1245
    multiple levels of probing for Subversion repositories.
1246
1246
 
1247
 
    See BzrProber and RemoteBzrProber in brzlib.bzrdir for the
 
1247
    See BzrProber and RemoteBzrProber in breezy.bzrdir for the
1248
1248
    probers that detect .bzr/ directories and Bazaar smart servers,
1249
1249
    respectively.
1250
1250