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

Several small improvements to merge proposal commands.

Merged from https://code.launchpad.net/~jelmer/brz/by-hoster/+merge/389998

Show diffs side-by-side

added added

removed removed

Lines of Context:
412
412
    raise UnsupportedHoster(branch)
413
413
 
414
414
 
415
 
def iter_hoster_instances():
 
415
def iter_hoster_instances(hoster=None):
416
416
    """Iterate over all known hoster instances.
417
417
 
418
418
    :return: Iterator over Hoster instances
419
419
    """
420
 
    for name, hoster_cls in hosters.items():
 
420
    if hoster is None:
 
421
        hoster_clses = [hoster_cls for name, hoster_cls in hosters.items()]
 
422
    else:
 
423
        hoster_clses = [hoster]
 
424
    for hoster_cls in hoster_clses:
421
425
        for instance in hoster_cls.iter_instances():
422
426
            yield instance
423
427