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

  • Committer: Andrew Bennetts
  • Date: 2009-07-10 02:06:52 UTC
  • mto: (4476.3.44 inventory-delta)
  • mto: This revision was merged to the branch mainline in revision 4608.
  • Revision ID: andrew.bennetts@canonical.com-20090710020652-al75zhm8r1q7njj8
Only make inv deltas against bases we've already sent, and other tweaks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
178
178
        unstacked_repo = stacked_branch.bzrdir.open_repository()
179
179
        unstacked_repo.lock_read()
180
180
        self.addCleanup(unstacked_repo.unlock)
181
 
        self.assertFalse(unstacked_repo.has_revision('left'))
182
 
        self.assertFalse(unstacked_repo.has_revision('right'))
 
181
        if not unstacked_repo._format.supports_chks:
 
182
            # these assertions aren't valid for groupcompress repos, which may
 
183
            # transfer data than strictly necessary to avoid breaking up an
 
184
            # already-compressed block of data.
 
185
            self.assertFalse(unstacked_repo.has_revision('left'))
 
186
            self.assertFalse(unstacked_repo.has_revision('right'))
183
187
        self.assertTrue(unstacked_repo.has_revision('merge'))
184
188
        # We used to check for the presence of parent invs here, but what
185
189
        # really matters is that the repo can stream the new revision without