~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/codehosting/branchdistro.py

  • Committer: Curtis Hovey
  • Date: 2011-05-27 21:53:34 UTC
  • mto: This revision was merged to the branch mainline in revision 13136.
  • Revision ID: curtis.hovey@canonical.com-20110527215334-jqlkmt52nnl4bpeh
Moved launchpad.event into registry interfaces.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
from canonical.config import config
31
31
from canonical.launchpad.interfaces.lpstorm import IMasterStore
 
32
from lp.app.interfaces.launchpad import ILaunchpadCelebrities
32
33
from lp.code.enums import (
33
34
    BranchLifecycleStatus,
34
35
    BranchType,
346
347
            old_db_branch.registrant)
347
348
        new_db_branch.sourcepackage.setBranch(
348
349
            PackagePublishingPocket.RELEASE, new_db_branch,
349
 
            new_db_branch.owner)
 
350
            getUtility(ILaunchpadCelebrities).ubuntu_branches.teamowner)
350
351
        old_db_branch.lifecycle_status = BranchLifecycleStatus.MATURE
351
352
        # switch_branches *moves* the data to locations dependent on the
352
353
        # new_branch's id, so if the transaction was rolled back we wouldn't