/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/smart/server.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 19:09:26 UTC
  • mfrom: (6622.1.36 breezy)
  • Revision ID: jelmer@jelmer.uk-20170521190926-5vtz8xaf0e9ylrpc
Merge rename to breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
import time
26
26
import threading
27
27
 
28
 
from bzrlib.hooks import Hooks
29
 
from bzrlib import (
 
28
from breezy.hooks import Hooks
 
29
from breezy import (
30
30
    errors,
31
31
    trace,
32
32
    transport as _mod_transport,
33
33
)
34
 
from bzrlib.i18n import gettext
35
 
from bzrlib.lazy_import import lazy_import
 
34
from breezy.i18n import gettext
 
35
from breezy.lazy_import import lazy_import
36
36
lazy_import(globals(), """
37
 
from bzrlib.smart import (
 
37
from breezy.smart import (
38
38
    medium,
39
39
    signals,
40
40
    )
41
 
from bzrlib.transport import (
 
41
from breezy.transport import (
42
42
    chroot,
43
43
    pathfilter,
44
44
    )
45
 
from bzrlib import (
 
45
from breezy import (
46
46
    config,
47
47
    urlutils,
48
48
    )
329
329
        These are all empty initially, because by default nothing should get
330
330
        notified.
331
331
        """
332
 
        Hooks.__init__(self, "bzrlib.smart.server", "SmartTCPServer.hooks")
 
332
        Hooks.__init__(self, "breezy.smart.server", "SmartTCPServer.hooks")
333
333
        self.add_hook('server_started',
334
334
            "Called by the bzr server when it starts serving a directory. "
335
335
            "server_started is called with (backing urls, public url), "
453
453
        self.smart_server = smart_server
454
454
 
455
455
    def _change_globals(self):
456
 
        from bzrlib import lockdir, ui
 
456
        from breezy import lockdir, ui
457
457
        # For the duration of this server, no UI output is permitted. note
458
458
        # that this may cause problems with blackbox tests. This should be
459
459
        # changed with care though, as we dont want to use bandwidth sending