592
592
revid = tree.commit('a commit')
593
593
# tree's dirstate should now have a valid stat entry for foo.
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])