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