/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-04-27 15:40:17 UTC
  • mto: This revision was merged to the branch mainline in revision 7317.
  • Revision ID: jelmer@jelmer.uk-20190427154017-6v7fdfooyn389f1r
Add 'brz land' subcommand.

Show diffs side-by-side

added added

removed removed

Lines of Context:
336
336
            for instance in hoster_cls.iter_instances():
337
337
                for mp in instance.iter_my_proposals(status=status):
338
338
                    self.outf.write('%s\n' % mp.url)
 
339
 
 
340
 
 
341
class cmd_land_merge_proposal(Command):
 
342
    __doc__ = """Land a merge proposal."""
 
343
 
 
344
    takes_args = ['url']
 
345
    takes_options = [
 
346
        Option('message', help='Commit message to use.', type=str)]
 
347
 
 
348
    def run(self, url, message=None):
 
349
        from .propose import get_proposal_by_url
 
350
        proposal = get_proposal_by_url(url)
 
351
        proposal.merge(commit_message=message)