b.f.RepoFetcher(object) : class documentation

Part of bzrlib.fetch View In Hierarchy

Pull revisions and texts from one repository to another.

This should not be used directly, it's essential a object to encapsulate the logic in InterRepository.fetch().

Method __init__ Create a repo fetcher.
Method __fetch Primary worker function.
Method _fetch_everything_for_search Fetch all data for the given set of revisions.
Method _revids_to_fetch Determines the exact revisions needed from self.from_repository to
def __init__(self, to_repository, from_repository, last_revision=None, find_ghosts=True, fetch_spec=None):
Create a repo fetcher.
Parameterslast_revisionIf set, try to limit to the data this revision references.
fetch_specA SearchResult specifying which revisions to fetch. If set, this overrides last_revision.
find_ghostsIf True search the entire history for ghosts.
def __fetch(self):
Primary worker function.

This initialises all the needed variables, and then fetches the requested revisions, finally clearing the progress bar.

def _fetch_everything_for_search(self, search):
Fetch all data for the given set of revisions.
def _revids_to_fetch(self):
Determines the exact revisions needed from self.from_repository to install self._last_revision in self.to_repository.
ReturnsA SearchResult of some sort. (Possibly a PendingAncestryResult, EmptySearchResult, etc.)
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.