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

Merge bzr.dev r3466

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
 
49
49
    def test_fetch_knit3(self):
50
50
        # create a repository of the sort we are testing.
51
 
        tree_a = self.make_branch_and_tree('a', '')
 
51
        tree_a = self.make_branch_and_tree('a')
52
52
        self.build_tree(['a/foo'])
53
53
        tree_a.add('foo', 'file1')
54
54
        tree_a.commit('rev1', rev_id='rev1')
127
127
            target_repo.get_signature_text('rev1'))
128
128
 
129
129
    def make_repository_with_one_revision(self):
130
 
        wt = self.make_branch_and_tree('source', '')
 
130
        wt = self.make_branch_and_tree('source')
131
131
        wt.commit('rev1', allow_pointless=True, rev_id='rev1')
132
132
        return wt.branch.repository
133
133
 
141
141
        # without causing any errors.
142
142
        target_repo.fetch(source_repo, revision_id='rev1')
143
143
 
 
144
    def test_fetch_all_same_revisions_twice(self):
 
145
        # Blind-fetching all the same revisions twice should succeed and be a
 
146
        # no-op the second time.
 
147
        repo = self.make_repository('repo')
 
148
        tree = self.make_branch_and_tree('tree')
 
149
        revision_id = tree.commit('test')
 
150
        repo.fetch(tree.branch.repository)
 
151
        repo.fetch(tree.branch.repository)