~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-01-09 05:29:09 UTC
  • mfrom: (3928.3.4 stacking_tweaks)
  • Revision ID: pqm@pqm.ubuntu.com-20090109052909-3jh4taiu906vin4p
(jam) Some fixes to stacked branches to avoid opening 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."""