~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_pack_repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-04-09 20:23:07 UTC
  • mfrom: (4265.1.4 bbc-merge)
  • Revision ID: pqm@pqm.ubuntu.com-20090409202307-n0depb16qepoe21o
(jam) Change _fetch_uses_deltas = False for CHK repos until we can
        write a better fix.

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()