~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/bzrdir_implementations/test_bzrdir.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-03-02 07:00:21 UTC
  • mfrom: (4060.1.4 branch.roundtrips)
  • Revision ID: pqm@pqm.ubuntu.com-20090302070021-dvcjdpf47t2aeari
(robertc) Streaming fetch from non-stacked branches on smart servers.
        (Robert Collins, Andrew Bennetts_

Show diffs side-by-side

added added

removed removed

Lines of Context:
553
553
        # Ensure no format data is cached
554
554
        a_dir = bzrlib.branch.Branch.open_from_transport(
555
555
            self.get_transport('source')).bzrdir
556
 
        target_transport = a_dir.root_transport.clone('..').clone('target')
 
556
        target_transport = self.get_transport('target')
557
557
        target_bzrdir = a_dir.clone_on_transport(target_transport)
558
558
        target_repo = target_bzrdir.open_repository()
559
559
        source_branch = bzrlib.branch.Branch.open(
655
655
 
656
656
    def test_clone_respects_stacked(self):
657
657
        branch = self.make_branch('parent')
658
 
        child_transport = branch.bzrdir.root_transport.clone('../child')
 
658
        child_transport = self.get_transport('child')
659
659
        child = branch.bzrdir.clone_on_transport(child_transport,
660
660
                                                 stacked_on=branch.base)
661
661
        self.assertEqual(child.open_branch().get_stacked_on_url(), branch.base)