~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

Tree Transform-based merger

Show diffs side-by-side

added added

removed removed

Lines of Context:
299
299
        self.assertNotEqual(dir.transport.base, target.transport.base)
300
300
        self.assertDirectoriesEqual(dir.root_transport, target.root_transport,
301
301
                                    ['./.bzr/stat-cache', './.bzr/checkout/stat-cache'])
 
302
        target.open_workingtree().revert([])
 
303
 
 
304
    def test_revert_inventory(self):
 
305
        tree = self.make_branch_and_tree('sourcce')
 
306
        self.build_tree(['foo'], transport=tree.bzrdir.transport.clone('..'))
 
307
        tree.add('foo')
 
308
        tree.commit('revision 1')
 
309
        dir = tree.bzrdir
 
310
        target = dir.clone(self.get_url('target'))
 
311
        self.assertDirectoriesEqual(dir.root_transport, target.root_transport,
 
312
                                    ['./.bzr/stat-cache', './.bzr/checkout/stat-cache'])
 
313
        target.open_workingtree().revert([])
 
314
        self.assertDirectoriesEqual(dir.root_transport, target.root_transport,
 
315
                                    ['./.bzr/stat-cache', './.bzr/checkout/stat-cache'])
302
316
 
303
317
    def test_clone_bzrdir_tree_branch_reference(self):
304
318
        # a tree with a branch reference (aka a checkout)