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

  • Committer: Max Bowsher
  • Date: 2011-02-11 05:27:33 UTC
  • mto: This revision was merged to the branch mainline in revision 5659.
  • Revision ID: maxb@f2s.com-20110211052733-4bv70v9c43tt6e5m
Fix bzr lp-mirror to work on command line branch URLs and branches 
without an explicit public location.

Show diffs side-by-side

added added

removed removed

Lines of Context:
299
299
        branch = _mod_branch.Branch.open(location)
300
300
        service = LaunchpadService()
301
301
        launchpad = lp_api.login(service)
302
 
        lp_branch = lp_api.load_branch(launchpad, branch)
303
 
        lp_branch.requestMirror()
 
302
        lp_branch = lp_api.LaunchpadBranch.from_bzr(launchpad, branch,
 
303
                create_missing=False)
 
304
        lp_branch.lp.requestMirror()
304
305
 
305
306
 
306
307
register_command(cmd_launchpad_mirror)