218
218
fs_mode = stat.S_IMODE(mode)
220
219
subinvdelta, subshamap = import_git_blob(texts, mapping,
221
220
child_path, child_hexsha, base_inv, file_id, revision_id,
222
221
parent_invs, shagitmap, lookup_object,
224
223
invdelta.extend(subinvdelta)
226
225
if mode not in (stat.S_IFDIR, DEFAULT_FILE_MODE,
227
226
stat.S_IFLNK, DEFAULT_FILE_MODE|0111):
228
227
child_modes[child_path] = mode
229
228
# Remove any children that have disappeared
231
230
deletable = [v for k,v in base_ie.children.iteritems() if k not in existing_children]