362
362
# add this entry to the parent map.
363
363
parent_ies[(dirname + '/' + name).strip('/')] = inv_entry
364
364
elif kind == 'tree-reference':
366
370
inv_entry.reference_revision = link_or_sha1 or None
369
373
# These checks cost us around 40ms on a 55k entry tree
370
374
assert file_id not in inv_byid, ('file_id %s already in'
371
375
' inventory as %s' % (file_id, inv_byid[file_id]))