/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_shelf.py

  • Committer: Martin Pool
  • Date: 2009-08-28 05:00:33 UTC
  • mfrom: (4659 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4660.
  • Revision ID: mbp@sourcefrog.net-20090828050033-blwvnig3gdzbr1iw
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
476
476
    def test_shelve_skips_added_root(self):
477
477
        """Skip adds of the root when iterating through shelvable changes."""
478
478
        tree = self.make_branch_and_tree('tree')
 
479
        tree.lock_tree_write()
 
480
        self.addCleanup(tree.unlock)
479
481
        creator = shelf.ShelfCreator(tree, tree.basis_tree())
480
482
        self.addCleanup(creator.finalize)
481
483
        self.assertEqual([], list(creator.iter_shelvable()))