~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugins/launchpad/__init__.py

  • Committer: Patch Queue Manager
  • Date: 2012-03-04 18:21:04 UTC
  • mfrom: (6468.4.3 509275-lp-fixes)
  • Revision ID: pqm@pqm.ubuntu.com-20120304182104-8y1tdavoblrrhflc
(jelmer) Add --link-bug option to 'bzr lp-propose'. (Ross Lagerwall)

Show diffs side-by-side

added added

removed removed

Lines of Context:
342
342
                            help='Commit message.'),
343
343
                     Option('approve',
344
344
                            help='Mark the proposal as approved immediately.'),
 
345
                     Option('fixes', 'The bug this proposal fixes.', str),
345
346
                     ListOption('review', short_name='R', type=unicode,
346
347
                            help='Requested reviewer and optional type.')]
347
348
 
350
351
    aliases = ['lp-submit', 'lp-propose']
351
352
 
352
353
    def run(self, submit_branch=None, review=None, staging=False,
353
 
            message=None, approve=False):
 
354
            message=None, approve=False, fixes=None):
354
355
        from bzrlib.plugins.launchpad import lp_propose
355
356
        tree, branch, relpath = bzrdir.BzrDir.open_containing_tree_or_branch(
356
357
            '.')
370
371
        else:
371
372
            target = _mod_branch.Branch.open(submit_branch)
372
373
        proposer = lp_propose.Proposer(tree, branch, target, message,
373
 
                                       reviews, staging, approve=approve)
 
374
                                       reviews, staging, approve=approve,
 
375
                                       fixes=fixes)
374
376
        proposer.check_proposal()
375
377
        proposer.create_proposal()
376
378