~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/graph.py

  • Committer: Robert Collins
  • Date: 2007-10-19 03:45:02 UTC
  • mto: This revision was merged to the branch mainline in revision 2917.
  • Revision ID: robertc@robertcollins.net-20071019034502-55zg0l4gvmucd1uw
Make the contract of HeadsCache.heads() more clear.

Show diffs side-by-side

added added

removed removed

Lines of Context:
381
381
    def heads(self, keys):
382
382
        """Return the heads of keys.
383
383
 
 
384
        This matches the API of Graph.heads(), specifically the return value is
 
385
        a set which can be mutated, and ordering of the input is not preserved
 
386
        in the output.
 
387
 
384
388
        :see also: Graph.heads.
385
389
        :param keys: The keys to calculate heads for.
386
390
        :return: A set containing the heads, which may be mutated without