b.b.CreateRepository(RepositoryAcquisitionPolicy) : class documentation

Part of bzrlib.bzrdir View In Hierarchy

A policy of creating a new repository
Method __init__ Constructor.
Method acquire_repository Implementation of RepositoryAcquisitionPolicy.acquire_repository

Inherited from RepositoryAcquisitionPolicy:

Method configure_branch Apply any configuration data from this policy to the branch.
Method requires_stacking Return True if this policy requires stacking.
Method _get_full_stack_on Get a fully-qualified URL for the stack_on location.
Method _add_fallback Add a fallback to the supplied repository, if stacking is set.
def __init__(self, bzrdir, stack_on=None, stack_on_pwd=None, require_stacking=False):
Constructor.
ParametersbzrdirThe bzrdir to create the repository on.
stack_onA location to stack on
stack_on_pwdIf stack_on is relative, the location it is relative to.
def acquire_repository(self, make_working_trees=None, shared=False):
Implementation of RepositoryAcquisitionPolicy.acquire_repository

Creates the desired repository in the bzrdir we already have.

API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.