/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/plugins/launchpad/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
from __future__ import absolute_import
39
39
 
40
40
# The XMLRPC server address can be overridden by setting the environment
41
 
# variable $BZR_LP_XMLRPC_URL
 
41
# variable $BRZ_LP_XMLRPC_URL
42
42
 
43
43
# see http://wiki.bazaar.canonical.com/Specs/BranchRegistrationTool
44
44
 
45
 
from bzrlib import (
 
45
from ... import (
46
46
    branch as _mod_branch,
47
47
    config as _mod_config,
48
48
    lazy_regex,
49
 
    # Since we are a built-in plugin we share the bzrlib version
 
49
    # Since we are a built-in plugin we share the breezy version
50
50
    trace,
51
51
    version_info,
52
52
    )
53
 
from bzrlib.commands import (
 
53
from ...commands import (
54
54
    plugin_cmds,
55
55
    )
56
 
from bzrlib.directory_service import directories
57
 
from bzrlib.help_topics import topic_registry
 
56
from ...directory_service import directories
 
57
from ...help_topics import topic_registry
58
58
 
59
59
for klsname, aliases in [
60
60
    ("cmd_register_branch", []),
64
64
    ("cmd_lp_propose_merge", ["lp-submit", "lp-propose"]),
65
65
    ("cmd_lp_find_proposal", [])]:
66
66
    plugin_cmds.register_lazy(klsname, aliases,
67
 
        "bzrlib.plugins.launchpad.cmds")
 
67
        "breezy.plugins.launchpad.cmds")
68
68
 
69
69
 
70
70
def _register_directory():
71
 
    directories.register_lazy('lp:', 'bzrlib.plugins.launchpad.lp_directory',
 
71
    directories.register_lazy('lp:', 'breezy.plugins.launchpad.lp_directory',
72
72
                              'LaunchpadDirectory',
73
73
                              'Launchpad-based directory service',)
74
74
    directories.register_lazy(
75
 
        'debianlp:', 'bzrlib.plugins.launchpad.lp_directory',
 
75
        'debianlp:', 'breezy.plugins.launchpad.lp_directory',
76
76
        'LaunchpadDirectory',
77
77
        'debianlp: shortcut')
78
78
    directories.register_lazy(
79
 
        'ubuntu:', 'bzrlib.plugins.launchpad.lp_directory',
 
79
        'ubuntu:', 'breezy.plugins.launchpad.lp_directory',
80
80
        'LaunchpadDirectory',
81
81
        'ubuntu: shortcut')
82
82
 
126
126
                     % (the_branch.base,))
127
127
        return
128
128
    archive, series, project = info
129
 
    from bzrlib.plugins.launchpad import lp_api_lite
 
129
    from . import lp_api_lite
130
130
    latest_pub = lp_api_lite.LatestPublication(archive, series, project)
131
131
    lp_api_lite.report_freshness(the_branch, verbosity, latest_pub)
132
132
 
138
138
 
139
139
_register_hooks()
140
140
 
141
 
def load_tests(basic_tests, module, loader):
 
141
def load_tests(loader, basic_tests, pattern):
142
142
    testmod_names = [
143
143
        'test_account',
144
144
        'test_register',