~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

(jam) Update stacking code so stacked branches don't open multiple
        connections.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2063
2063
    def _get_fallback_repository(self, url):
2064
2064
        """Get the repository we fallback to at url."""
2065
2065
        url = urlutils.join(self.base, url)
2066
 
        return bzrdir.BzrDir.open(url).open_branch().repository
 
2066
        a_bzrdir = bzrdir.BzrDir.open(url,
 
2067
                                      possible_transports=[self._transport])
 
2068
        return a_bzrdir.open_branch().repository
2067
2069
 
2068
2070
    def _activate_fallback_location(self, url):
2069
2071
        """Activate the branch/repository from url as a fallback repository."""