/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/workingtree_implementations/test_workingtree.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-16 18:38:57 UTC
  • mfrom: (1934 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1937.
  • Revision ID: john@arbash-meinel.com-20060816183857-7307edffa7098bd2
[merge] bzr.dev 1934

Show diffs side-by-side

added added

removed removed

Lines of Context:
278
278
    def test_set_last_revision(self):
279
279
        wt = self.make_branch_and_tree('source')
280
280
        self.assertEqual(None, wt.last_revision())
281
 
        # cannot set the last revision to one not in the branch history.
282
 
        self.assertRaises(errors.NoSuchRevision, wt.set_last_revision, 'A')
 
281
        # set last-revision to one not in the history
 
282
        wt.set_last_revision('A')
 
283
        # set it back to None for an empty tree.
 
284
        wt.set_last_revision(None)
283
285
        wt.commit('A', allow_pointless=True, rev_id='A')
284
286
        self.assertEqual('A', wt.last_revision())
285
287
        # None is aways in the branch
635
637
        osutils.normalized_filename = osutils._accessible_normalized_filename
636
638
        try:
637
639
            tree.add([u'a\u030a'])
638
 
            self.assertEqual([('', 'root_directory'), (u'\xe5', 'file')],
 
640
            self.assertEqual([('', 'directory'), (u'\xe5', 'file')],
639
641
                    [(path, ie.kind) for path,ie in 
640
642
                                tree.inventory.iter_entries()])
641
643
        finally: