/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/plugins/launchpad/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2018-11-17 00:47:52 UTC
  • mfrom: (7182 work)
  • mto: This revision was merged to the branch mainline in revision 7305.
  • Revision ID: jelmer@jelmer.uk-20181117004752-6ywampe5pfywlby4
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    lazy_regex,
48
48
    # Since we are a built-in plugin we share the breezy version
49
49
    trace,
50
 
    version_info,
 
50
    version_info,  # noqa: F401
51
51
    )
52
52
from ...commands import (
53
53
    plugin_cmds,
61
61
    ("cmd_launchpad_logout", ["lp-logout"]),
62
62
    ("cmd_launchpad_mirror", ["lp-mirror"]),
63
63
    ("cmd_lp_propose_merge", ["lp-submit", "lp-propose"]),
64
 
    ("cmd_lp_find_proposal", [])]:
 
64
        ("cmd_lp_find_proposal", [])]:
65
65
    plugin_cmds.register_lazy(klsname, aliases,
66
 
        "breezy.plugins.launchpad.cmds")
 
66
                              "breezy.plugins.launchpad.cmds")
67
67
 
68
68
 
69
69
def _register_directory():
79
79
        'LaunchpadDirectory',
80
80
        'ubuntu: shortcut')
81
81
 
 
82
 
82
83
_register_directory()
83
84
 
84
85
# This is kept in __init__ so that we don't load lp_api_lite unless the branch
90
91
    r'(?P<project>[^/]+)(?P<branch>/[^/]+)?'
91
92
    )
92
93
 
 
94
 
93
95
def _get_package_branch_info(url):
94
96
    """Determine the packaging information for this URL.
95
97
 
132
134
 
133
135
def _register_hooks():
134
136
    _mod_branch.Branch.hooks.install_named_hook('open',
135
 
        _check_is_up_to_date, 'package-branch-up-to-date')
 
137
                                                _check_is_up_to_date, 'package-branch-up-to-date')
136
138
 
137
139
 
138
140
_register_hooks()
139
141
 
 
142
 
140
143
def load_tests(loader, basic_tests, pattern):
141
144
    testmod_names = [
142
145
        'test_account',
149
152
        'test_lp_service',
150
153
        ]
151
154
    basic_tests.addTest(loader.loadTestsFromModuleNames(
152
 
            ["%s.%s" % (__name__, tmn) for tmn in testmod_names]))
 
155
        ["%s.%s" % (__name__, tmn) for tmn in testmod_names]))
153
156
    return basic_tests
154
157
 
155
158
 
179
182
For more information see http://help.launchpad.net/
180
183
"""
181
184
topic_registry.register('launchpad',
182
 
    _launchpad_help,
183
 
    'Using Bazaar with Launchpad.net')
 
185
                        _launchpad_help,
 
186
                        'Using Bazaar with Launchpad.net')
184
187
 
185
188
_mod_config.option_registry.register(
186
189
    _mod_config.Option('launchpad.packaging_verbosity', default=True,
187
 
          from_unicode=_mod_config.bool_from_store,
188
 
          help="""\
 
190
                       from_unicode=_mod_config.bool_from_store,
 
191
                       help="""\
189
192
Whether to warn if a UDD package import branch is accessed that is out of date.
190
193
 
191
194
Setting this option to 'off' will disable verbosity.
192
195
"""))
193
196
_mod_config.option_registry.register(
194
197
    _mod_config.Option('launchpad_username', default=None,
195
 
        help="The username to login with when conneting to Launchpad."))
 
198
                       help="The username to login with when conneting to Launchpad."))