b.g.PendingAncestryResult(AbstractSearchResult) : class documentation

Part of bzrlib.graph View In Hierarchy

A search result that will reconstruct the ancestry for some graph heads.

Unlike SearchResult, this doesn't hold the complete search result in memory, it just holds a description of how to generate it.

Method __init__ Constructor.
Method __repr__ Undocumented
Method get_recipe Return a recipe that can be used to replay this search.
Method get_network_struct Return a tuple that can be transmitted via the HPSS protocol.
Method get_keys See SearchResult.get_keys.
Method is_empty Return false if the search lists 1 or more revisions.
Method refine Create a new search by refining this search.
Method _get_keys Undocumented
def __init__(self, heads, repo):
Constructor.
Parametersheadsan iterable of graph heads.
repoa repository to use to generate the ancestry for the given heads.
def __repr__(self):
Undocumented
def get_recipe(self):
Return a recipe that can be used to replay this search.

The recipe allows reconstruction of the same results at a later date.

ReturnsA tuple ('proxy-search', start_keys_set, set(), -1) To recreate this result, create a PendingAncestryResult with the start_keys_set.
See Also
def get_network_struct(self):
Return a tuple that can be transmitted via the HPSS protocol.
def get_keys(self):
See SearchResult.get_keys.

Returns all the keys for the ancestry of the heads, excluding NULL_REVISION.

def _get_keys(self, graph):
Undocumented
def is_empty(self):
Return false if the search lists 1 or more revisions.
def refine(self, seen, referenced):
Create a new search by refining this search.
ParametersseenRevisions that have been satisfied.
referencedRevision references observed while satisfying some of this search.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.