/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 bzrlib/branch.py

  • Committer: John Arbash Meinel
  • Date: 2009-01-08 19:15:20 UTC
  • mto: (3932.2.4 1.11)
  • mto: This revision was merged to the branch mainline in revision 3933.
  • Revision ID: john@arbash-meinel.com-20090108191520-ymp6abkgwvkz297o
Fix Branch.open() so that for stacked branches we 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."""