~bzr/bzr/bzr.1.5

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_fetch.py

Reinstate the transaction cache for bzr 1.5rc1

Show diffs side-by-side

added added

removed removed

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