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

  • Committer: Aaron Bentley
  • Date: 2007-07-12 07:22:52 UTC
  • mto: This revision was merged to the branch mainline in revision 2606.
  • Revision ID: aaron.bentley@utoronto.ca-20070712072252-67b3yxu8650t6sgm
Updates from review

Show diffs side-by-side

added added

removed removed

Lines of Context:
160
160
            return
161
161
        tree.commit('foo', rev_id='foo', local=True)
162
162
        self.failIf(master.repository.has_revision('foo'))
163
 
        self.assertTrue(_mod_revision.is_null(_mod_revision.ensure_null(
164
 
                        master.last_revision())))
 
163
        self.assertEqual(_mod_revision.NULL_REVISION,
 
164
                         (_mod_revision.ensure_null(master.last_revision())))
165
165
 
166
166
    def test_record_initial_ghost(self):
167
167
        """The working tree needs to record ghosts during commit."""
394
394
           )
395
395
 
396
396
 
397
 
class TestUncommit(TestCaseWithWorkingTree):
398
397
 
399
 
    def test_uncommit_to_null(self):
400
 
        tree = self.make_branch_and_tree('branch')
401
 
        tree.lock_write()
402
 
        revid = tree.commit('a revision')
403
 
        tree.unlock()
404
 
        uncommit.uncommit(tree.branch, tree=tree)
405
 
        self.assertEqual([], tree.get_parent_ids())