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

  • Committer: Martin Pool
  • Date: 2008-04-21 05:43:30 UTC
  • mto: (3360.3.3 1.4)
  • mto: This revision was merged to the branch mainline in revision 3385.
  • Revision ID: mbp@sourcefrog.net-20080421054330-opwod8ybwkheuk95
re-enable transaction cache to speed knit access (cherrypick robertc)

Show diffs side-by-side

added added

removed removed

Lines of Context:
285
285
        # unfortunately this log entry is branch format specific. We could 
286
286
        # factor out the 'what files does this format use' to a method on the 
287
287
        # repository, which would let us to this generically. RBC 20060419
288
 
        # RBC 20080408: Or perhaps we can assert that no files are fully read
289
 
        # twice?
290
288
        self.assertEqual(1, self._count_log_matches('/ce/id.kndx', http_logs))
291
289
        self.assertEqual(1, self._count_log_matches('/ce/id.knit', http_logs))
292
 
        # XXX: This *should* be '1', but more intrusive fetch changes are
293
 
        # needed to drop this back to 1.
294
 
        self.assertEqual(2, self._count_log_matches('inventory.kndx', http_logs))
 
290
        self.assertEqual(1, self._count_log_matches('inventory.kndx', http_logs))
295
291
        # this r-h check test will prevent regressions, but it currently already 
296
292
        # passes, before the patch to cache-rh is applied :[
297
293
        self.assertTrue(1 >= self._count_log_matches('revision-history',
315
311
        self.log('\n'.join(http_logs))
316
312
        self.assertEqual(1, self._count_log_matches('branch-format', http_logs))
317
313
        self.assertEqual(1, self._count_log_matches('branch/format', http_logs))
318
 
        self.assertEqual(1, self._count_log_matches('repository/format',
319
 
            http_logs))
 
314
        self.assertEqual(1, self._count_log_matches('repository/format', http_logs))
320
315
        self.assertTrue(1 >= self._count_log_matches('revision-history',
321
316
                                                     http_logs))
322
317
        self.assertTrue(1 >= self._count_log_matches('last-revision',