b.g.FrozenHeadsCache(object) : class documentation

Part of bzrlib.graph View In Hierarchy

Cache heads() calls, assuming the caller won't modify them.
Method __init__ Undocumented
Method heads Return the heads of keys.
Method cache Store a known value.
def __init__(self, graph):
Undocumented
def heads(self, keys):
Return the heads of keys.

Similar to Graph.heads(). The main difference is that the return value is a frozen set which cannot be mutated.

ParameterskeysThe keys to calculate heads for.
ReturnsA frozenset containing the heads.
See AlsoGraph.heads.
def cache(self, keys, heads):
Store a known value.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.