507
507
if path_to_create is not None:
508
508
tid = tt.trans_id_tree_path(path_to_create)
509
509
transform.create_from_tree(
510
tt, tid, self._revision_tree(tt._tree, revid), file_id)
512
511
tt.version_file(file_id, tid)
514
514
# Adjust the path for the retained file id
516
515
parent_tid = tt.get_tree_parent(tid)
517
516
tt.adjust_path(osutils.basename(path), parent_tid, tid)