476
477
Iteration is done in parent-to-child order, relative to the to_tree.
480
482
from_data = dict((e.file_id, (p, e)) for p, e in from_entries_by_dir)
488
486
for to_path, to_entry in to_entries_by_dir:
489
487
file_id = to_entry.file_id
490
488
to_paths[file_id] = to_path
496
491
from_path, from_entry = from_data.get(file_id, (None, None))