b.v.InterVersionedFileRepository(InterRepository) : class documentation

Part of bzrlib.vf_repository View In Hierarchy

Known subclasses: bzrlib.vf_repository.InterDifferingSerializer, bzrlib.vf_repository.InterSameDataRepository

No class docstring
Method fetch Fetch the content required to construct revision_id.
Method search_missing_revision_ids Return the revision ids that source has that target does not.
Class Method is_compatible Undocumented
Method _walk_to_common_revisions Walk out from revision_ids in source to revisions target has.
Method _present_source_revisions_for Returns set of all revisions in ancestry of revision_ids present in
Class Method _get_repo_format_to_test Undocumented

Inherited from InterRepository:

Method copy_content Make a complete copy of the content in self into destination.
Static Method _same_model True if source and target have the same data representation.
Static Method _assert_same_model Raise an exception if two repositories do not use the same model.

Inherited from InterObject (via InterRepository):

Method __init__ Construct a default InterObject instance. Please use 'get'.
Class Method get Retrieve a Inter worker object for these objects.
Method lock_read Take out a logical read lock.
Method lock_write Take out a logical write lock.
Class Method register_optimiser Register an InterObject optimiser.
Method unlock Release the locks on source and target.
Class Method unregister_optimiser Unregister an InterObject optimiser.
Method _double_lock Take out two locks, rolling back the first if the second throws.
@needs_write_lock
def fetch(self, revision_id=None, find_ghosts=False, fetch_spec=None):
Fetch the content required to construct revision_id.

The content is copied from self.source to self.target.

Parametersrevision_idif None all content is copied, if NULL_REVISION no content is copied.
ReturnsNone.
def _walk_to_common_revisions(self, revision_ids, if_present_ids=None):
Walk out from revision_ids in source to revisions target has.
Parametersrevision_idsThe start point for the search.
ReturnsA set of revision ids.
@needs_read_lock
def search_missing_revision_ids(self, revision_id=symbol_versioning.DEPRECATED_PARAMETER, find_ghosts=True, revision_ids=None, if_present_ids=None, limit=None):
Return the revision ids that source has that target does not.
Parametersrevision_idonly return revision ids included by this revision_id.
revision_idsreturn revision ids included by these revision_ids. NoSuchRevision will be raised if any of these revisions are not present.
if_present_idslike revision_ids, but will not cause NoSuchRevision if any of these are absent, instead they will simply not be in the result. This is useful for e.g. finding revisions to fetch for tags, which may reference absent revisions.
find_ghostsIf True find missing revisions in deep history rather than just finding the surface difference.
ReturnsA bzrlib.graph.SearchResult.
def _present_source_revisions_for(self, revision_ids, if_present_ids=None):
Returns set of all revisions in ancestry of revision_ids present in the source repo.
Parametersrevision_idsif None, all revisions in source are returned.
if_present_idslike revision_ids, but if any/all of these are absent no error is raised.
@classmethod
def _get_repo_format_to_test(self):
Undocumented
@classmethod
def is_compatible(cls, source, target):
Undocumented
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.