/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/controldir.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:
808
808
            a_transport = new_t
809
809
 
810
810
    @classmethod
811
 
    def open_tree_or_branch(klass, location):
 
811
    def open_tree_or_branch(klass, location, name=None):
812
812
        """Return the branch and working tree at a location.
813
813
 
814
814
        If there is no tree at the location, tree will be None.
817
817
        :return: (tree, branch)
818
818
        """
819
819
        controldir = klass.open(location)
820
 
        return controldir._get_tree_branch()
 
820
        return controldir._get_tree_branch(name=name)
821
821
 
822
822
    @classmethod
823
823
    def open_containing_tree_or_branch(klass, location,