b.t.t.DummyForeignVcsDir(bzrdir.BzrDirMeta1) : class documentation

Part of bzrlib.tests.test_foreign View In Hierarchy

No class docstring
Method __init__ Initialize a Bzr control dir object.
Method create_workingtree See BzrDir.create_workingtree.
Method open_branch See BzrDir.open_branch.
Method cloning_metadir Produce a metadir suitable for cloning with.
Method checkout_metadir Produce a metadir suitable for checkouts of this controldir.
Method sprout Create a copy of this controldir prepared for use as a new line of

Inherited from BzrDirMeta1:

Method can_convert_format See BzrDir.can_convert_format().
Method create_branch See BzrDir.create_branch.
Method destroy_branch See BzrDir.create_branch.
Method create_repository See BzrDir.create_repository.
Method destroy_repository See BzrDir.destroy_repository.
Method destroy_workingtree See BzrDir.destroy_workingtree.
Method destroy_workingtree_metadata Destroy the control files for the working tree at this ControlDir.
Method find_branch_format Find the branch 'format' for this bzrdir.
Method get_branch_reference See BzrDir.get_branch_reference().
Method get_branch_transport See BzrDir.get_branch_transport().
Method get_repository_transport See BzrDir.get_repository_transport().
Method get_workingtree_transport See BzrDir.get_workingtree_transport().
Method has_workingtree Tell if this bzrdir contains a working tree.
Method needs_format_conversion See BzrDir.needs_format_conversion().
Method open_repository See BzrDir.open_repository.
Method open_workingtree See BzrDir.open_workingtree.
Method _get_mkdir_mode Figure out the mode to use when creating a bzrdir subdir.
Method _get_config By default, no configuration is available.

Inherited from BzrDir (via BzrDirMeta1):

Method break_lock Invoke break_lock on the first object in the bzrdir.
Method check_conversion_target Check that a bzrdir as a whole can be converted to a new format.
Method clone_on_transport Clone this bzrdir and its contents to transport verbatim.
Method determine_repository_policy Return an object representing a policy to use.
Method generate_backup_name Undocumented
Method backup_bzrdir Backup this bzr control directory.
Method retire_bzrdir Permanently disable the bzrdir.
Method find_repository Find the repository that should be used.
Method get_config Get configuration for this BzrDir.
Method user_transport Undocumented
Method control_transport Undocumented
Method is_control_filename True if filename is the name of a path which is reserved for bzrdir's.
Class Method create Create a new BzrDir at the url 'base'.
Method _make_tail Undocumented
Method _find_or_create_repository Create a new repository if needed, returning the repository.
Method _find_source_repo Find the source branch and repo for a sprout operation.
Method _sprout Undocumented
Method _available_backup_name Find a non-existing backup file name based on base.
Method _find_containing Find something in a containing control directory.
Method _find_creation_modes Determine the appropriate modes for files and directories.
Method _get_file_mode Return Unix mode for newly created files, or None.
Method _get_dir_mode Return Unix mode for newly created directories, or None.
Method _cloning_metadir Produce a metadir suitable for cloning with.

Inherited from ControlDir (via BzrDirMeta1, BzrDir):

Method list_branches Return a sequence of all branches local to this control directory.
Method has_branch Tell if this controldir contains a branch.
Method push_branch Push the source branch into this ControlDir.
Method clone Clone this controldir and its contents to url verbatim.
Class Method find_bzrdirs Find control dirs recursively from current location.
Class Method find_branches Find all branches under a transport.
Class Method create_branch_and_repo Create a new ControlDir, Branch and Repository at the url 'base'.
Class Method create_branch_convenience Create a new ControlDir, Branch and Repository at the url 'base'.
Class Method create_standalone_workingtree Create a new ControlDir, WorkingTree, Branch and Repository at 'base'.
Class Method open_unsupported Open a branch which is not supported.
Class Method open Open an existing controldir, rooted at 'base' (url).
Class Method open_from_transport Open a controldir within a particular directory.
Class Method open_containing Open an existing branch which contains url.
Class Method open_containing_from_transport Open an existing branch which contains a_transport.base.
Class Method open_tree_or_branch Return the branch and working tree at a location.
Class Method open_containing_tree_or_branch Return the branch and working tree contained by a location.
Class Method open_containing_tree_branch_or_repository Return the working tree, branch and repo contained by a location.
Method _get_selected_branch Return the name of the branch selected by the user.
Method _get_tree_branch Return the branch and tree, if any, for this controldir.

Inherited from ControlComponent (via BzrDirMeta1, BzrDir, ControlDir):

Method control_url Undocumented
Method user_url Undocumented
def __init__(self, _transport, _format):
Initialize a Bzr control dir object.

Only really common logic should reside here, concrete classes should be made with varying behaviours.

Parameters_formatthe format that is creating this BzrDir instance.
_transportthe transport this dir is based at.
def create_workingtree(self):
See BzrDir.create_workingtree.
def open_branch(self, name=None, unsupported=False, ignore_fallbacks=True):
See BzrDir.open_branch.
def cloning_metadir(self, stacked=False):
Produce a metadir suitable for cloning with.
def checkout_metadir(self):
Produce a metadir suitable for checkouts of this controldir.
def sprout(self, url, revision_id=None, force_new_repo=False, recurse='down', possible_transports=None, accelerator_tree=None, hardlink=False, stacked=False, source_branch=None):

Create a copy of this controldir prepared for use as a new line of development.

If url's last component does not exist, it will be created.

Attributes related to the identity of the source branch like branch nickname will be cleaned, a working tree is created whether one existed before or not; and a local branch is always created.

if revision_id is not None, then the clone operation may tune
itself to download less data.
Parametersaccelerator_treeA tree which can be used for retrieving file contents more quickly than the revision tree, i.e. a workingtree. The revision tree will be used for cases where accelerator_tree's content is different.
hardlinkIf true, hard-link files from accelerator_tree, where possible.
stackedIf true, create a stacked branch referring to the location of this control directory.
create_tree_if_localIf true, a working-tree will be created when working locally.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.