b.r.Reconfigure(object) : class documentation

Part of bzrlib.reconfigure View In Hierarchy

No class docstring
Method __init__ Undocumented
Static Method to_branch Return a Reconfiguration to convert this bzrdir into a branch
Static Method to_tree Return a Reconfiguration to convert this bzrdir into a tree
Static Method to_checkout Return a Reconfiguration to convert this bzrdir into a checkout
Class Method to_lightweight_checkout Make a Reconfiguration to convert bzrdir into a lightweight checkout
Class Method to_use_shared Convert a standalone branch into a repository branch
Class Method to_standalone Convert a repository branch into a standalone branch
Class Method set_repository_trees Adjust a repository's working tree presence default
Method changes_planned Return True if changes are planned, False otherwise
Method apply Apply the reconfiguration
Method _plan_changes Determine which changes are needed to assume the configuration
Method _set_use_shared Undocumented
Method _check Raise if reconfiguration would destroy local changes
Method _select_bind_location Select a location to bind or create a reference to.
def __init__(self, bzrdir, new_bound_location=None):
Undocumented
@staticmethod
def to_branch(bzrdir):
Return a Reconfiguration to convert this bzrdir into a branch
ParametersbzrdirThe bzrdir to reconfigure
Raiseserrors.AlreadyBranchif bzrdir is already a branch
@staticmethod
def to_tree(bzrdir):
Return a Reconfiguration to convert this bzrdir into a tree
ParametersbzrdirThe bzrdir to reconfigure
Raiseserrors.AlreadyTreeif bzrdir is already a tree
@staticmethod
def to_checkout(bzrdir, bound_location=None):
Return a Reconfiguration to convert this bzrdir into a checkout
ParametersbzrdirThe bzrdir to reconfigure
bound_locationThe location the checkout should be bound to.
Raiseserrors.AlreadyCheckoutif bzrdir is already a checkout
@classmethod
def to_lightweight_checkout(klass, bzrdir, reference_location=None):
Make a Reconfiguration to convert bzrdir into a lightweight checkout
ParametersbzrdirThe bzrdir to reconfigure
bound_locationThe location the checkout should be bound to.
Raiseserrors.AlreadyLightweightCheckoutif bzrdir is already a lightweight checkout
@classmethod
def to_use_shared(klass, bzrdir):
Convert a standalone branch into a repository branch
@classmethod
def to_standalone(klass, bzrdir):
Convert a repository branch into a standalone branch
@classmethod
def set_repository_trees(klass, bzrdir, with_trees):
Adjust a repository's working tree presence default
def _plan_changes(self, want_tree, want_branch, want_bound, want_reference):
Determine which changes are needed to assume the configuration
def _set_use_shared(self, use_shared=None):
Undocumented
def changes_planned(self):
Return True if changes are planned, False otherwise
def _check(self):
Raise if reconfiguration would destroy local changes
def _select_bind_location(self):
Select a location to bind or create a reference to.

Preference is: 1. user specified location 2. branch reference location (it's a kind of bind location) 3. current bind location 4. previous bind location (it was a good choice once) 5. push location (it's writeable, so committable) 6. parent location (it's pullable, so update-from-able)

def apply(self, force=False):
Apply the reconfiguration
ParametersforceIf true, the reconfiguration is applied even if it will destroy local changes.
Raiseserrors.UncommittedChangesif the local tree is to be destroyed but contains uncommitted changes.
errors.NoBindLocationif no bind location was specified and none could be autodetected.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.