~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_repository/test_fetch.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:
46
46
                   revision_id=None)
47
47
                   ## pb=bzrlib.progress.DummyProgress())
48
48
 
49
 
    def test_fetch_knit3(self):
 
49
    def test_fetch_to_knit3(self):
50
50
        # create a repository of the sort we are testing.
51
51
        tree_a = self.make_branch_and_tree('a')
52
52
        self.build_tree(['a/foo'])
80
80
        try:
81
81
            tree_b = b_bzrdir.create_workingtree()
82
82
        except errors.NotLocalUrl:
83
 
            raise TestSkipped("cannot make working tree with transport %r"
 
83
            try:
 
84
                tree_b = b_branch.create_checkout('b', lightweight=True)
 
85
            except errors.NotLocalUrl:
 
86
                raise TestSkipped("cannot make working tree with transport %r"
84
87
                              % b_bzrdir.transport)
85
88
        tree_b.commit('no change', rev_id='rev2')
86
89
        rev2_tree = knit3_repo.revision_tree('rev2')