b.t.t.SampleBzrDirFormat(bzrdir.BzrDirFormat) : class documentation

Part of bzrlib.tests.test_bzrdir View In Hierarchy

A sample format

this format is initializable, unsupported to aid in testing the open and open_downlevel routines.

Method get_format_string See BzrDirFormat.get_format_string().
Method initialize_on_transport Create a bzr dir.
Method is_supported Is this format supported?
Method open Return an instance of this format for the dir transport points at.

Inherited from BzrDirFormat:

Method initialize_on_transport_ex Create this format on transport.
Method supports_transport Check if this format can be opened over a particular transport.
Method _initialize_on_transport_vfs Initialize a new bzrdir using VFS calls.
Method _open Template method helper for opening BzrDirectories.
Method _supply_sub_formats_to Give other_format the same values for sub formats as this has.

Inherited from ControlDirFormat (via BzrDirFormat):

Method get_format_description Return the short description for this format.
Method get_converter Return the converter to use to convert controldirs needing converts.
Method is_initializable Whether new control directories of this format can be initialized.
Method check_support_status Give an error or warning on old formats.
Method same_model Undocumented
Class Method register_format Register a format that does not use '.bzr' for its control dir.
Class Method register_prober Register a prober that can look for a control dir.
Class Method unregister_prober Unregister a prober.
Class Method register_server_prober Register a control format prober for client-server environments.
Method __str__ Undocumented
Class Method known_formats Return all the known formats.
Class Method find_format Return the format present at transport.
Method initialize Create a control dir at this url and return an opened copy.
Method network_name A simple byte string uniquely identifying this format for RPC calls.
Class Method get_default_format Return the current default format.
Class Method _set_default_format Set default format (for testing behavior of defaults only)
def get_format_string(self):
See BzrDirFormat.get_format_string().
def initialize_on_transport(self, t):
Create a bzr dir.
def is_supported(self):
Is this format supported?

Supported formats must be openable. Unsupported formats may not support initialization or committing or some other features depending on the reason for not being supported.

def open(self, transport, _found=None):
Return an instance of this format for the dir transport points at.

_found is a private parameter, do not use it.

API Documentation for Bazaar, generated by pydoctor at 2020-02-21 00:51:01.