877
877
elif kind == 'directory':
878
878
return tt.new_directory(name, parent_id, entry.file_id)
881
return tt.new_symlink(name, parent_id, target, file_id)
881
return tt.new_symlink(name, parent_id, target, entry.file_id)
883
883
def create_by_entry(tt, entry, tree, trans_id, lines=None, mode_id=None):
884
884
"""Create new file contents according to an inventory entry."""