/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/cmds.py

  • Committer: Jelmer Vernooij
  • Date: 2019-05-20 03:50:06 UTC
  • mto: This revision was merged to the branch mainline in revision 7328.
  • Revision ID: jelmer@jelmer.uk-20190520035006-uknwxjikt8lv8eyo
More fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
319
319
    hidden = True
320
320
 
321
321
    takes_options = [
 
322
        'verbose',
322
323
        RegistryOption.from_kwargs(
323
324
            'status',
324
325
            title='Proposal Status',
330
331
            merged='Merged merge proposals',
331
332
            closed='Closed merge proposals')]
332
333
 
333
 
    def run(self, status='open'):
 
334
    def run(self, status='open', verbose=False):
334
335
        from .propose import hosters
335
336
        for name, hoster_cls in hosters.items():
336
337
            for instance in hoster_cls.iter_instances():
337
338
                for mp in instance.iter_my_proposals(status=status):
338
339
                    self.outf.write('%s\n' % mp.url)
 
340
                    if verbose:
 
341
                        self.outf.write(
 
342
                            '(Merging %s into %s)\n' %
 
343
                            (mp.get_source_branch_url(),
 
344
                             mp.get_target_branch_url()))
 
345
                        self.outf.writelines(
 
346
                            ['\t%s\n' % l
 
347
                             for l in mp.get_description().splitlines()])
 
348
                        self.outf.write('\n')