71
70
revid1 = self.t.commit('add a')
72
71
revid2 = self.t.commit('another change', allow_pointless=True)
73
72
tree = self.t.branch.repository.revision_tree(revid2)
75
74
tree.get_file_revision(tree.path2id('a')))
77
76
def test_get_file_mtime_ghost(self):
78
77
file_id = iter(self.rev_tree.all_file_ids()).next()
80
79
self.assertRaises(errors.FileTimestampUnavailable,
81
80
self.rev_tree.get_file_mtime, file_id)