~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_workingtree/test_inv.py

  • Committer: Jelmer Vernooij
  • Date: 2011-05-04 22:23:20 UTC
  • mfrom: (5825 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5830.
  • Revision ID: jelmer@samba.org-20110504222320-bczsppms2wadcrb4
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
        wt = self.make_branch_and_tree('b1')
30
30
        wt.lock_tree_write()
31
31
        self.addCleanup(wt.unlock)
32
 
        self.assertEqual(len(wt.inventory), 1)
 
32
        self.assertEqual(len(wt.all_file_ids()), 1)
33
33
        open('b1/a', 'wb').write('a test\n')
34
34
        wt.add('a')
35
 
        self.assertEqual(len(wt.inventory), 2)
 
35
        self.assertEqual(len(wt.all_file_ids()), 2)
36
36
        wt.flush() # workaround revert doing wt._write_inventory for now.
37
37
        os.unlink('b1/a')
38
38
        wt.revert()
39
 
        self.assertEqual(len(wt.inventory), 1)
 
39
        self.assertEqual(len(wt.all_file_ids()), 1)
40
40
 
41
41
 
42
42
class TestApplyInventoryDelta(TestCaseWithWorkingTree):