/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/launchpad/lp_propose.py

  • Committer: Breezy landing bot
  • Author(s): Gustav Hartvigsson
  • Date: 2021-01-10 18:46:30 UTC
  • mfrom: (7526.1.1 brz-removed-api-doc)
  • mto: This revision was merged to the branch mainline in revision 7532.
  • Revision ID: breezy.the.bot@gmail.com-20210110184630-dxu0g9dqq020uiw6
Drop documentation for removed API API.

Merged from https://code.launchpad.net/~gustav-hartvigsson/brz/removed-api-doc/+merge/396033

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
    def check_proposal(self):
139
139
        """Check that the submission is sensible."""
140
140
        if self.source_branch.lp.self_link == self.target_branch.lp.self_link:
141
 
            raise errors.BzrCommandError(
 
141
            raise errors.CommandError(
142
142
                'Source and target branches must be different.')
143
143
        for mp in self.source_branch.lp.landing_targets:
144
144
            if mp.queue_status in ('Merged', 'Rejected'):
145
145
                continue
146
146
            if mp.target_branch.self_link == self.target_branch.lp.self_link:
147
 
                raise errors.BzrCommandError(gettext(
 
147
                raise errors.CommandError(gettext(
148
148
                    'There is already a branch merge proposal: %s') %
149
149
                    lp_api.canonical_url(mp))
150
150