~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/controldir.py

  • Committer: Patch Queue Manager
  • Date: 2012-01-28 13:24:39 UTC
  • mfrom: (6450.1.1 bzr.dev)
  • Revision ID: pqm@pqm.ubuntu.com-20120128132439-phvlss4cq7bf5rji
(jelmer) Merge the 2.5 branch. (Jelmer Vernooij)

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