/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_memorytree.py

Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
        # and we should have a revision that is accessible outside the tree lock
116
116
        revtree = tree.branch.repository.revision_tree(revision_id)
117
117
        self.assertEqual('barshoom', revtree.get_file('foo-id').read())
 
118
 
 
119
    def test_unversion(self):
 
120
        """Some test for unversion of a memory tree."""
 
121
        branch = self.make_branch('branch')
 
122
        tree = MemoryTree.create_on_branch(branch)
 
123
        tree.lock_write()
 
124
        tree.add(['foo'], ids=['foo-id'], kinds=['file'])
 
125
        tree.unversion(['foo-id'])
 
126
        self.assertFalse(tree.has_id('foo-id'))
 
127
        tree.unlock()