~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/whitebox.py

  • Committer: Robert Collins
  • Date: 2005-10-30 23:58:46 UTC
  • Revision ID: robertc@robertcollins.net-20051030235846-fda8b626748cce52
Move Branch.read_working_inventory to WorkingTree.

Branch.read_working_inventory has moved to
WorkingTree.read_working_inventory. This necessitated changes to
Branch.get_root_id, and a move of Branch.set_inventory to WorkingTree
as well. To make it clear that a WorkingTree cannot always be obtained
Branch.working_tree() will raise 'errors.NoWorkingTree' if one cannot
be obtained. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
 
98
98
        b.rename_one('dir', 'newdir')
99
99
 
100
 
        self.check_inventory_shape(b.inventory,
 
100
        self.check_inventory_shape(b.working_tree().read_working_inventory(),
101
101
                                   ['newdir', 'newdir/sub', 'newdir/sub/file'])
102
102
 
103
103
        b.rename_one('newdir/sub', 'newdir/newsub')
104
 
        self.check_inventory_shape(b.inventory,
 
104
        self.check_inventory_shape(b.working_tree().read_working_inventory(),
105
105
                                   ['newdir', 'newdir/newsub',
106
106
                                    'newdir/newsub/file'])
107
107