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

Make use of the transaction finalisation warning support to implement in-knit caching.

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
        self.assertRaises(errors.OutSideTransaction, f.add_lines_with_ghosts, '', [], [])
102
102
        self.assertRaises(errors.OutSideTransaction, f.fix_parents, '', [])
103
103
        self.assertRaises(errors.OutSideTransaction, f.join, '')
 
104
        self.assertRaises(errors.OutSideTransaction, f.clone_text, 'base', 'bar', ['foo'])
104
105
        
105
106
    def test_clear_cache(self):
106
107
        f = self.get_file()
394
395
                          [])
395
396
        self.assertRaises(errors.ReadOnlyError, vf.fix_parents, 'base', [])
396
397
        self.assertRaises(errors.ReadOnlyError, vf.join, 'base')
 
398
        self.assertRaises(errors.ReadOnlyError, vf.clone_text, 'base', 'bar', ['foo'])
397
399
        
398
400
 
399
401
class TestWeave(TestCaseWithTransport, VersionedFileTestMixIn):