Part of bzrlib.bzrdir View In Hierarchy
Known subclasses: bzrlib.bzrdir.CreateRepository, bzrlib.bzrdir.UseExistingRepository
A repository acquisition policy decides how a BzrDir acquires a repository for a branch that is being created. The most basic policy decision is whether to create a new repository or use an existing one.
Method | __init__ | Constructor. |
Method | configure_branch | Apply any configuration data from this policy to the branch. |
Method | requires_stacking | Return True if this policy requires stacking. |
Method | acquire_repository | Acquire a repository for this bzrdir. |
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. |
Parameters | stack_on | A location to stack on |
stack_on_pwd | If stack_on is relative, the location it is relative to. | |
require_stacking | If True, it is a failure to not stack. |
Default implementation sets repository stacking.
Implementations may create a new repository or use a pre-exising repository.
Parameters | make_working_trees | If creating a repository, set make_working_trees to this value (if non-None) |
shared | If creating a repository, make it shared if True | |
Returns | A repository, is_new_flag (True if the repository was created). |