~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_shelf.py

  • Committer: Aaron Bentley
  • Date: 2009-08-09 13:43:35 UTC
  • mto: This revision was merged to the branch mainline in revision 4641.
  • Revision ID: aaron@aaronbentley.com-20090809134335-sir7m009c1lil8te
Fix shelve in uncommitted trees.

Show diffs side-by-side

added added

removed removed

Lines of Context:
423
423
        self.assertRaises(errors.PathsNotVersionedError,
424
424
                          shelf.ShelfCreator, tree, tree.basis_tree(), ['foo'])
425
425
 
 
426
    def test_shelve_skips_added_root(self):
 
427
        """Skip adds of the root when iterating through shelvable changes."""
 
428
        tree = self.make_branch_and_tree('tree')
 
429
        creator = shelf.ShelfCreator(tree, tree.basis_tree())
 
430
        self.addCleanup(creator.finalize)
 
431
        self.assertEqual([], list(creator.iter_shelvable()))
 
432
 
426
433
 
427
434
class TestUnshelver(tests.TestCaseWithTransport):
428
435