/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: Gustav Hartvigsson
  • Date: 2021-01-11 20:19:38 UTC
  • mfrom: (7526.3.2 work)
  • Revision ID: gustav.hartvigsson@gmail.com-20210111201938-omr9wjz3qdgyxe8k
MergedĀ lp:brz

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