/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/tests/per_repository/test_fetch.py

  • Committer: Martin Pool
  • Date: 2009-03-03 03:01:49 UTC
  • mfrom: (4070 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4073.
  • Revision ID: mbp@sourcefrog.net-20090303030149-8p8o8hszdtqa7w8f
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
    def test_fetch(self):
33
33
        # smoke test fetch to ensure that the convenience function works.
34
 
        # it is defined as a convenience function with the underlying 
 
34
        # it is defined as a convenience function with the underlying
35
35
        # functionality provided by an InterRepository
36
36
        tree_a = self.make_branch_and_tree('a')
37
37
        self.build_tree(['a/foo'])
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')