222
222
The created Branch object is returned.
223
223
If a working tree cannot be made due to base not being a file:// url,
226
227
:param base: The URL to create the branch at.
227
228
:param force_new_repo: If True a new repository is always created.
228
229
:param force_new_tree: If True or False force creation of a tree or
229
230
prevent such creation respectively.
231
237
bzrdir = BzrDir.create(base)
232
238
repo = bzrdir._find_or_create_repository(force_new_repo)
233
239
result = bzrdir.create_branch()
234
240
if force_new_tree or (repo.make_working_trees() and