b.g.HeadsCache(object) : class documentation

Part of bzrlib.graph View In Hierarchy

A cache of results for graph heads calls.
Method __init__ Undocumented
Method heads Return the heads of keys.
def __init__(self, graph):
Undocumented
def heads(self, keys):
Return the heads of keys.

This matches the API of Graph.heads(), specifically the return value is a set which can be mutated, and ordering of the input is not preserved in the output.

ParameterskeysThe keys to calculate heads for.
ReturnsA set containing the heads, which may be mutated without affecting future lookups.
See AlsoGraph.heads.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.