~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_workingtree_4.py

  • Committer: Martin Pool
  • Date: 2009-03-12 05:44:43 UTC
  • mfrom: (4124 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4144.
  • Revision ID: mbp@sourcefrog.net-20090312054443-rz5kodxh1cjjx2id
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
592
592
        revid = tree.commit('a commit')
593
593
        # tree's dirstate should now have a valid stat entry for foo.
594
594
        tree.lock_read()
 
595
        self.addCleanup(tree.unlock)
595
596
        entry = tree._get_entry(path='foo')
596
597
        expected_sha1 = osutils.sha_file_by_name('foo')
597
598
        self.assertEqual(expected_sha1, entry[1][0][1])