182
182
result_branch = source_branch.sprout(
183
183
result, revision_id=revision_id, repository=result_repo)
184
184
if (create_tree_if_local and
185
186
isinstance(target_transport, LocalTransport) and
186
187
(result_repo is None or result_repo.make_working_trees())):
187
188
result.create_workingtree(