/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/graph.py

  • Committer: John Arbash Meinel
  • Date: 2008-03-14 11:55:52 UTC
  • mto: This revision was merged to the branch mainline in revision 3280.
  • Revision ID: john@arbash-meinel.com-20080314115552-37na0d823hfrkm1l
Fix up docstring since FrozenHeadsCache doesn't let you mutate the result.

Show diffs side-by-side

added added

removed removed

Lines of Context:
483
483
    def heads(self, keys):
484
484
        """Return the heads of keys.
485
485
 
486
 
        This matches the API of Graph.heads(), specifically the return value is
487
 
        a set which can be mutated, and ordering of the input is not preserved
488
 
        in the output.
 
486
        Similar to Graph.heads(). The main difference is that the return value
 
487
        is a frozen set which cannot be mutated.
489
488
 
490
489
        :see also: Graph.heads.
491
490
        :param keys: The keys to calculate heads for.
492
 
        :return: A set containing the heads, which may be mutated without
493
 
            affecting future lookups.
 
491
        :return: A frozenset containing the heads.
494
492
        """
495
493
        keys = frozenset(keys)
496
494
        try: