218
222
basis_tree = branch.repository.revision_tree(revision_id)
219
223
# only set an explicit root id if there is one to set.
221
225
wt.set_root_id(basis_tree.get_root_id())
222
226
if revision_id == _mod_revision.NULL_REVISION:
225
229
wt.set_parent_trees([(revision_id, basis_tree)])
226
230
transform.build_tree(basis_tree, wt)
228
234
# Unlock in this order so that the unlock-triggers-flush in
229
235
# WorkingTree is given a chance to fire.