~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/model/branch.py

  • Committer: Jelmer Vernooij
  • Date: 2011-08-22 21:04:00 UTC
  • mfrom: (13261.7.21 bzr-2.4b4)
  • mto: This revision was merged to the branch mainline in revision 13941.
  • Revision ID: jelmer@canonical.com-20110822210400-3hfq31q2wgrtauad
Merge bzr-2.4b4.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1152
1152
            BranchJob.job_type == BranchJobType.UPGRADE_BRANCH)
1153
1153
        return jobs.count() > 0
1154
1154
 
1155
 
    def requestUpgrade(self):
 
1155
    def requestUpgrade(self, requester):
1156
1156
        """See `IBranch`."""
1157
1157
        from lp.code.interfaces.branchjob import IBranchUpgradeJobSource
1158
 
        return getUtility(IBranchUpgradeJobSource).create(self)
 
1158
        return getUtility(IBranchUpgradeJobSource).create(self, requester)
1159
1159
 
1160
1160
    def _checkBranchVisibleByUser(self, user):
1161
1161
        """Is *this* branch visible by the user.