/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 breezy/plugins/propose/launchpad.py

  • Committer: Jelmer Vernooij
  • Date: 2019-06-03 03:10:29 UTC
  • mfrom: (7312 work)
  • mto: This revision was merged to the branch mainline in revision 7318.
  • Revision ID: jelmer@jelmer.uk-20190603031029-b34je03bjulxxdwj
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
    if url.startswith('lp:'):
74
74
        return True
75
75
    regex = re.compile('([a-z]*\+)*(bzr\+ssh|http|ssh|git|https)'
76
 
                       '://(bazaar|git).*.launchpad.net')
 
76
                       '://(bazaar|git).*\.launchpad\.net')
77
77
    return bool(regex.match(url))
78
78
 
79
79
 
140
140
 
141
141
    def set_description(self, description):
142
142
        self._mp.description = description
 
143
        self._mp.lp_save()
143
144
 
144
145
    def close(self):
145
146
        self._mp.setStatus(status='Rejected')
482
483
                        prerequisite_branch=None):
483
484
        """Perform the submission."""
484
485
        if labels:
485
 
            raise LabelsUnsupported()
 
486
            raise LabelsUnsupported(self)
486
487
        if prerequisite_branch is not None:
487
488
            prereq = self.launchpad.branches.getByUrl(
488
489
                url=prerequisite_branch.user_url)
611
612
                        prerequisite_branch=None):
612
613
        """Perform the submission."""
613
614
        if labels:
614
 
            raise LabelsUnsupported()
 
615
            raise LabelsUnsupported(self)
615
616
        if prerequisite_branch is not None:
616
617
            (prereq_repo_lp, prereq_branch_lp) = (
617
618
                self.lp_host._get_lp_git_ref_from_branch(prerequisite_branch))