~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/bzrdir_implementations/test_bzrdir.py

Merged changes from transform

Show diffs side-by-side

added added

removed removed

Lines of Context:
191
191
        self.assertNotEqual(dir.transport.base, target.transport.base)
192
192
        self.assertDirectoriesEqual(dir.root_transport, target.root_transport,
193
193
                                    ['./.bzr/stat-cache', './.bzr/checkout/stat-cache'])
 
194
        target.open_workingtree().revert([])
 
195
 
 
196
    def test_revert_inventory(self):
 
197
        tree = self.make_branch_and_tree('sourcce')
 
198
        self.build_tree(['foo'], transport=tree.bzrdir.transport.clone('..'))
 
199
        tree.add('foo')
 
200
        tree.commit('revision 1')
 
201
        dir = tree.bzrdir
 
202
        target = dir.clone(self.get_url('target'))
 
203
        self.assertDirectoriesEqual(dir.root_transport, target.root_transport,
 
204
                                    ['./.bzr/stat-cache', './.bzr/checkout/stat-cache'])
 
205
        target.open_workingtree().revert([])
 
206
        self.assertDirectoriesEqual(dir.root_transport, target.root_transport,
 
207
                                    ['./.bzr/stat-cache', './.bzr/checkout/stat-cache'])
194
208
 
195
209
    def test_clone_bzrdir_tree_branch_reference(self):
196
210
        # a tree with a branch reference (aka a checkout)