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

Add a -b option to ''brz branch''.

Merged from https://code.launchpad.net/~jelmer/brz/flag-b/+merge/381552

Show diffs side-by-side

added added

removed removed

Lines of Context:
1470
1470
                            help="Bind new branch to from location."),
1471
1471
                     Option('no-recurse-nested',
1472
1472
                            help='Do not recursively check out nested trees.'),
 
1473
                     Option('colocated-branch', short_name='b',
 
1474
                            type=str, help='Name of colocated branch to sprout.'),
1473
1475
                     ]
1474
1476
 
1475
1477
    def run(self, from_location, to_location=None, revision=None,
1476
1478
            hardlink=False, stacked=False, standalone=False, no_tree=False,
1477
1479
            use_existing_dir=False, switch=False, bind=False,
1478
 
            files_from=None, no_recurse_nested=False):
 
1480
            files_from=None, no_recurse_nested=False, colocated_branch=None):
1479
1481
        from breezy import switch as _mod_switch
1480
1482
        accelerator_tree, br_from = controldir.ControlDir.open_tree_or_branch(
1481
 
            from_location)
 
1483
            from_location, name=colocated_branch)
1482
1484
        if no_recurse_nested:
1483
1485
            recurse = 'none'
1484
1486
        else: