~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/controldir.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
778
778
        return controldir._get_tree_branch()
779
779
 
780
780
    @classmethod
781
 
    def open_containing_tree_or_branch(klass, location):
 
781
    def open_containing_tree_or_branch(klass, location,
 
782
            possible_transports=None):
782
783
        """Return the branch and working tree contained by a location.
783
784
 
784
785
        Returns (tree, branch, relpath).
787
788
        raised
788
789
        relpath is the portion of the path that is contained by the branch.
789
790
        """
790
 
        controldir, relpath = klass.open_containing(location)
 
791
        controldir, relpath = klass.open_containing(location,
 
792
            possible_transports=possible_transports)
791
793
        tree, branch = controldir._get_tree_branch()
792
794
        return tree, branch, relpath
793
795