b.fetch : module documentation

Part of bzrlib

Copying of history from one branch to another.

The basic plan is that every branch knows the history of everything that has merged into it. As the first step of a merge, pull, or branch operation we copy history from the source into the destination branch.

Class RepoFetcher Pull revisions and texts from one repository to another.
Class Inter1and2Helper Helper for operations that convert data from model 1 and 2
Class TargetRepoKinds An enum-like set of constants.
Class FetchSpecFactory A helper for building the best fetch spec for a sprout call.
Function _new_root_data_stream Generate a texts substream of synthesised root entries.
Function _parent_keys_for_root_version Get the parent keys for a given root id.
def _new_root_data_stream(root_keys_to_create, rev_id_to_root_id_map, parent_map, repo, graph=None):
Generate a texts substream of synthesised root entries.

Used in fetches that do rich-root upgrades.

Parametersroot_keys_to_createiterable of (root_id, rev_id) pairs describing the root entries to create.
rev_id_to_root_id_mapdict of known rev_id -> root_id mappings for calculating the parents. If a parent rev_id is not found here then it will be recalculated.
parent_mapa parent map for all the revisions in root_keys_to_create.
grapha graph to use instead of repo.get_graph().
def _parent_keys_for_root_version(root_id, rev_id, rev_id_to_root_id_map, parent_map, repo, graph=None):
Get the parent keys for a given root id.

A helper function for _new_root_data_stream.

API Documentation for Bazaar, generated by pydoctor at 2014-09-18 00:01:49.