b.t.t.SampleRepositoryFormat(repository.RepositoryFormat) : class documentation

Part of bzrlib.tests.test_repository View In Hierarchy

A sample format

this format is initializable, unsupported to aid in testing the open and open(unsupported=True) routines.

Method get_format_string See RepositoryFormat.get_format_string().
Method initialize Initialize a repository in a BzrDir
Method is_supported Is this format supported?
Method open Return an instance of this format for a controldir.

Inherited from RepositoryFormat:

Method __repr__ Undocumented
Method __eq__ Undocumented
Method __ne__ Undocumented
Class Method find_format Return the format for the repository object in a_bzrdir.
Class Method register_format Undocumented
Class Method unregister_format Undocumented
Class Method get_default_format Return the current default format.
Method get_format_description Return the short description for this format.
Method is_deprecated Is this format deprecated?
Method network_name A simple byte string uniquely identifying this format for RPC calls.
Method check_conversion_target Undocumented
Method _run_post_repo_init_hooks Undocumented
def get_format_string(self):
See RepositoryFormat.get_format_string().
def initialize(self, a_bzrdir, shared=False):
Initialize a repository in a BzrDir
def is_supported(self):
Is this format supported?

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

def open(self, a_bzrdir, _found=False):
Return an instance of this format for a controldir.

_found is a private parameter, do not use it.

API Documentation for Bazaar, generated by pydoctor at 2022-05-23 00:24:40.