b.f.FetchSpecFactory(object) : class documentation

Part of bzrlib.fetch View In Hierarchy

A helper for building the best fetch spec for a sprout call.

Factors that go into determining the sort of fetch to perform:
  • did the caller specify any revision IDs?
  • did the caller specify a source branch (need to fetch its heads_to_fetch(), usually the tip + tags)
  • is there an existing target repo (don't need to refetch revs it already has)
  • target is stacked? (similar to pre-existing target repo: even if the target itself is new don't want to refetch existing revs)
Instance Variablessource_branchthe source branch if one specified, else None.
source_branch_stop_revision_idfetch up to this revision of source_branch, rather than its tip.
source_repothe source repository if one found, else None.
target_repothe target repository acquired by sprout.
target_repo_kindone of the TargetRepoKinds constants.
Method __init__ Undocumented
Method add_revision_ids Add revision_ids to the set of revision_ids to be fetched.
Method make_fetch_spec Build a SearchResult or PendingAncestryResult or etc.
def __init__(self):
Undocumented
def add_revision_ids(self, revision_ids):
Add revision_ids to the set of revision_ids to be fetched.
def make_fetch_spec(self):
Build a SearchResult or PendingAncestryResult or etc.
API Documentation for Bazaar, generated by pydoctor at 2019-07-18 00:29:27.