~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tree.py

  • Committer: Martin Pool
  • Date: 2005-05-17 06:56:16 UTC
  • Revision ID: mbp@sourcefrog.net-20050517065616-6f23381d6184a8aa
- add space for un-merged patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
import bzrlib
34
34
 
35
 
class Tree(object):
 
35
class Tree:
36
36
    """Abstract file tree.
37
37
 
38
38
    There are several subclasses:
63
63
 
64
64
    __contains__ = has_id
65
65
 
 
66
    def id_set(self):
 
67
        """Return set of all ids in this tree."""
 
68
        return self.inventory.id_set()
 
69
 
66
70
    def __iter__(self):
67
71
        return iter(self.inventory)
68
72