/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-03 00:18:35 UTC
  • mfrom: (0.431.66 trunk)
  • mto: This revision was merged to the branch mainline in revision 7239.
  • Revision ID: jelmer@jelmer.uk-20190103001835-j9hdqbz70tp2ks84
Merge support for merge proposal status.

Show diffs side-by-side

added added

removed removed

Lines of Context:
351
351
    def iter_instances(cls):
352
352
        yield cls()
353
353
 
354
 
    def iter_my_proposals(self):
355
 
        for mp in self.launchpad.me.getMergeProposals():
 
354
    def iter_my_proposals(self, status='open'):
 
355
        statuses = []
 
356
        if status in ('open', 'all'):
 
357
            statuses.extend([
 
358
                'Work in progress',
 
359
                'Needs review',
 
360
                'Approved',
 
361
                'Code failed to merge',
 
362
                'Queued'])
 
363
        if status in ('closed', 'all'):
 
364
            statuses.extend(['Rejected', 'Superseded'])
 
365
        if status in ('merged', 'all'):
 
366
            statuses.append('Merged')
 
367
        for mp in self.launchpad.me.getMergeProposals(status=statuses):
356
368
            yield LaunchpadMergeProposal(mp)
357
369
 
358
370