~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_pack_repository.py

  • Committer: John Arbash Meinel
  • Date: 2009-04-09 19:14:56 UTC
  • mto: This revision was merged to the branch mainline in revision 4280.
  • Revision ID: john@arbash-meinel.com-20090409191456-dh9cqbf1qma90vc0
Special case the CHK1 format to allow it to not fetch using deltas.

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
        """Packs reuse deltas."""
81
81
        format = self.get_format()
82
82
        repo = self.make_repository('.', format=format)
83
 
        self.assertEqual(True, repo._format._fetch_uses_deltas)
 
83
        if isinstance(format.repository_format, RepositoryFormatCHK1):
 
84
            # TODO: This is currently a workaround. CHK format repositories
 
85
            #       ignore the 'deltas' flag, but during conversions, we can't
 
86
            #       do unordered delta fetches. Remove this clause once we
 
87
            #       improve the inter-format fetching.
 
88
            self.assertEqual(False, repo._format._fetch_uses_deltas)
 
89
        else:
 
90
            self.assertEqual(True, repo._format._fetch_uses_deltas)
84
91
 
85
92
    def test_disk_layout(self):
86
93
        format = self.get_format()