/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-01-02 20:22:45 UTC
  • mfrom: (0.431.63 trunk)
  • mto: This revision was merged to the branch mainline in revision 7239.
  • Revision ID: jelmer@jelmer.uk-20190102202245-i317zf85xj5i94j6
Merge support for 'brz my-proposals'.

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
class Launchpad(Hoster):
115
115
    """The Launchpad hosting service."""
116
116
 
 
117
    name = 'launchpad'
 
118
 
117
119
    # https://bugs.launchpad.net/launchpad/+bug/397676
118
120
    supports_merge_proposal_labels = False
119
121
 
329
331
        else:
330
332
            raise AssertionError('not a valid Launchpad URL')
331
333
 
 
334
    @classmethod
 
335
    def iter_instances(cls):
 
336
        yield cls()
 
337
 
 
338
    def iter_my_proposals(self):
 
339
        for mp in self.launchpad.me.getMergeProposals():
 
340
            yield LaunchpadMergeProposal(mp)
 
341
 
332
342
 
333
343
def connect_launchpad(lp_instance='production'):
334
344
    service = lp_registration.LaunchpadService(lp_instance=lp_instance)