76
79
self.assertIsInstance(rev, revision.Revision)
78
81
def test_get_revision_unknown(self):
81
84
repo = Repository.open('.')
82
85
self.assertRaises(errors.NoSuchRevision, repo.get_revision, "bla")
85
88
# Create a git repository with some interesting files in a revision.
87
90
builder = tests.GitBranchBuilder()
88
91
builder.set_file('data', 'text\n', False)
89
92
builder.set_file('executable', 'content', True)