/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-01-11 16:22:12 UTC
  • mfrom: (7408.3.2 propose-core)
  • Revision ID: breezy.the.bot@gmail.com-20200111162212-nbf6wtjz2lxryuf2
Move the propose module into core.

Merged from https://code.launchpad.net/~jelmer/brz/propose-core/+merge/374757

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
    )
39
39
from ...sixish import text_type
40
40
from ...trace import note
41
 
from . import (
 
41
from ... import (
42
42
    propose as _mod_propose,
43
43
    )
44
44
 
338
338
            closed='Closed merge proposals')]
339
339
 
340
340
    def run(self, status='open', verbose=False):
341
 
        from .propose import hosters
342
 
        for name, hoster_cls in hosters.items():
 
341
        for name, hoster_cls in _mod_propose.hosters.items():
343
342
            for instance in hoster_cls.iter_instances():
344
343
                for mp in instance.iter_my_proposals(status=status):
345
344
                    self.outf.write('%s\n' % mp.url)
364
363
        Option('message', help='Commit message to use.', type=str)]
365
364
 
366
365
    def run(self, url, message=None):
367
 
        from .propose import get_proposal_by_url
368
 
        proposal = get_proposal_by_url(url)
 
366
        proposal = _mod_propose.get_proposal_by_url(url)
369
367
        proposal.merge(commit_message=message)