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