~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Aaron Bentley
  • Date: 2010-11-23 06:10:54 UTC
  • mto: This revision was merged to the branch mainline in revision 5549.
  • Revision ID: aaron@aaronbentley.com-20101123061054-nghff07moj3ptbgj
Switch lp-find-proposal to production API.

Show diffs side-by-side

added added

removed removed

Lines of Context:
390
390
 
391
391
    def run(self, revision=None):
392
392
        from bzrlib.plugins.launchpad import lp_api
393
 
        from launchpadlib.launchpad import Launchpad
394
 
        from launchpadlib.uris import STAGING_SERVICE_ROOT
395
393
        import webbrowser
396
 
        root = STAGING_SERVICE_ROOT.replace('staging', 'qastaging')
397
394
        b = _mod_branch.Branch.open_containing('.')[0]
398
395
        pb = ui.ui_factory.nested_progress_bar()
399
396
        b.lock_read()
400
397
        try:
401
398
            revno = self._find_merged_revno(revision, b, pb)
402
 
            launchpad = Launchpad.login_with('find-review', root)
 
399
            service = lp_registration.LaunchpadService()
 
400
            launchpad = lp_api.login(service)
403
401
            pb.update('Finding Launchpad branch')
404
402
            lpb = lp_api.LaunchpadBranch.from_bzr(launchpad, b)
405
403
            pb.update('Finding proposals')