/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: Robert Collins
  • Date: 2007-10-15 05:23:29 UTC
  • mfrom: (2906 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2907.
  • Revision ID: robertc@robertcollins.net-20071015052329-z5458xq9q2kq72mv
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
        self.assertEqual(
100
100
            source_repo.get_signature_text('rev1'),
101
101
            target_repo.get_signature_text('rev1'))
 
102
 
 
103
    def make_repository_with_one_revision(self):
 
104
        wt = self.make_branch_and_tree('source', '')
 
105
        wt.commit('rev1', allow_pointless=True, rev_id='rev1')
 
106
        return wt.branch.repository
 
107
 
 
108
    def test_fetch_revision_already_exists(self):
 
109
        # Make a repository with one revision.
 
110
        source_repo = self.make_repository_with_one_revision()
 
111
        # Fetch that revision into a second repository.
 
112
        target_repo = self.make_repository('target')
 
113
        target_repo.fetch(source_repo, revision_id='rev1')
 
114
        # Now fetch again; there will be nothing to do.  This should work
 
115
        # without causing any errors.
 
116
        target_repo.fetch(source_repo, revision_id='rev1')
 
117