/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/cmds.py

  • Committer: Jelmer Vernooij
  • Date: 2018-12-11 17:23:43 UTC
  • mfrom: (7221 work)
  • mto: This revision was merged to the branch mainline in revision 7223.
  • Revision ID: jelmer@jelmer.uk-20181211172343-ig78dq5zoqg9rrzl
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
167
167
                old_username)
168
168
 
169
169
 
170
 
# XXX: cmd_launchpad_mirror is untested
171
 
class cmd_launchpad_mirror(Command):
172
 
    __doc__ = """Ask Launchpad to mirror a branch now."""
173
 
 
174
 
    aliases = ['lp-mirror']
175
 
    takes_args = ['location?']
176
 
 
177
 
    def run(self, location='.'):
178
 
        from . import lp_api
179
 
        from .lp_registration import LaunchpadService
180
 
        branch, _ = _mod_branch.Branch.open_containing(location)
181
 
        service = LaunchpadService()
182
 
        launchpad = lp_api.login(service)
183
 
        lp_branch = lp_api.LaunchpadBranch.from_bzr(launchpad, branch,
184
 
                                                    create_missing=False)
185
 
        lp_branch.lp.requestMirror()
186
 
 
187
 
 
188
170
class cmd_lp_propose_merge(Command):
189
171
    __doc__ = """Propose merging a branch on Launchpad.
190
172