/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

  • Committer: Aaron Bentley
  • Date: 2008-04-25 22:12:34 UTC
  • mto: This revision was merged to the branch mainline in revision 3384.
  • Revision ID: aaron@aaronbentley.com-20080425221234-ov2ahpio6y54mnlq
Prevent fetch all from causing pack collisions

Show diffs side-by-side

added added

removed removed

Lines of Context:
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)