203
203
tree_entry = tree.tree.inventory[entry.id]
204
204
if tree_entry.kind == "file":
205
205
return changeset.FileCreate(tree.get_file(entry.id).read())
207
209
assert tree_entry.kind in ("root_directory", "directory")
208
210
return changeset.dir_create