~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/testing/factory.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-06-08 15:00:44 UTC
  • mfrom: (13139.3.19 bug-365098)
  • Revision ID: launchpad@pqm.canonical.com-20110608150044-22appycxz15bkafr
[r=bac][bug=365098] Allow distribution and archive owners as well as
 package uploader to set the official package branch link. Remove the
 ubuntu-branches celebrity.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1401
1401
        # here.
1402
1402
        removeSecurityProxy(branch).branchChanged(
1403
1403
            '', 'rev1', None, None, None)
1404
 
        ubuntu_branches = getUtility(ILaunchpadCelebrities).ubuntu_branches
1405
 
        run_with_login(
1406
 
            ubuntu_branches.teamowner,
1407
 
            package.development_version.setBranch,
1408
 
            PackagePublishingPocket.RELEASE,
1409
 
            branch,
1410
 
            ubuntu_branches.teamowner)
 
1404
        with person_logged_in(package.distribution.owner):
 
1405
            package.development_version.setBranch(
 
1406
                PackagePublishingPocket.RELEASE, branch,
 
1407
                package.distribution.owner)
1411
1408
        return branch
1412
1409
 
1413
1410
    def makeBranchMergeProposal(self, target_branch=None, registrant=None,