1312
1312
_create_prefix(to_transport)
1316
1316
except errors.NotBranchError:
1317
1317
# really a NotBzrDir error...
1318
1318
create_branch = bzrdir.BzrDir.create_branch_convenience
1319
1319
branch = create_branch(to_transport.base, format=format,
1320
1320
possible_transports=[to_transport])
1322
1323
from bzrlib.transport.local import LocalTransport
1324
1325
if (isinstance(to_transport, LocalTransport)
1326
1327
raise errors.BranchExistsWithoutWorkingTree(location)
1327
1328
raise errors.AlreadyBranchError(location)
1331
1331
if append_revisions_only:
1333
1333
branch.set_append_revisions_only(True)