~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/workingtree_implementations/test_commit.py

  • Committer: Robert Collins
  • Date: 2006-09-05 08:14:23 UTC
  • mto: (1852.16.2 Tree.walkdirs)
  • mto: This revision was merged to the branch mainline in revision 1993.
  • Revision ID: robertc@robertcollins.net-20060905081423-b1bc9b092a9f8597
DeprecateĀ WorkingTree.last_revision.

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
    def test_commit_sets_last_revision(self):
84
84
        tree = self.make_branch_and_tree('tree')
85
85
        committed_id = tree.commit('foo', rev_id='foo', allow_pointless=True)
86
 
        self.assertEqual('foo', tree.last_revision())
 
86
        self.assertEqual(['foo'], tree.get_parent_ids())
87
87
        # the commit should have returned the same id we asked for.
88
88
        self.assertEqual('foo', committed_id)
89
89