~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

Simplify code in RemoteBranch to use helpers from Branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1935
1935
        except (errors.NotStacked, errors.UnstackableBranchFormat,
1936
1936
            errors.UnstackableRepositoryFormat), e:
1937
1937
            return
1938
 
        # it's relative to this branch...
1939
 
        fallback_url = urlutils.join(self.base, fallback_url)
1940
 
        transports = [self.bzrdir.root_transport]
1941
 
        stacked_on = branch.Branch.open(fallback_url,
1942
 
                                        possible_transports=transports)
1943
 
        self.repository.add_fallback_repository(stacked_on.repository)
 
1938
        self._activate_fallback_location(fallback_url)
1944
1939
 
1945
1940
    def _get_real_transport(self):
1946
1941
        # if we try vfs access, return the real branch's vfs transport