~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_inv.py

  • Committer: Robert Collins
  • Date: 2006-03-01 08:40:35 UTC
  • mto: (1594.2.4 integration)
  • mto: This revision was merged to the branch mainline in revision 1596.
  • Revision ID: robertc@robertcollins.net-20060301084035-ce00abd11fe4da31
Change weave store to be a versioned store, using WeaveFiles which maintain integrity without needing explicit 'put' operations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
292
292
        self.assertEqual(self.file_1, other_ie)
293
293
        other_ie.revision = 'other'
294
294
        self.assertNotEqual(self.file_1, other_ie)
295
 
        self.branch.repository.weave_store.add_identical_text('fileid', '1', 
296
 
            'other', ['1'], self.branch.get_transaction())
 
295
        versionfile = self.branch.repository.weave_store.get_weave(
 
296
            'fileid', self.branch.repository.get_transaction())
 
297
        versionfile.clone_text('other', '1', ['1'])
297
298
        self.file_active.snapshot('2', 'subdir/file', 
298
299
                                  {'1':self.file_1, 'other':other_ie},
299
300
                                  self.wt,